Skip to content

Commit 42cb0ef

Browse files
committed
Merge branch '2.0.x'
2 parents ab8d286 + 3ff20b2 commit 42cb0ef

File tree

7 files changed

+20
-9
lines changed

7 files changed

+20
-9
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
<configLocation>src/checkstyle/checkstyle.xml</configLocation>
5454
<suppressionsLocation>src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
5555
<includeTestSourceDirectory>true</includeTestSourceDirectory>
56+
<propertyExpansion>main.basedir=${main.basedir}</propertyExpansion>
5657
</configuration>
5758
<goals>
5859
<goal>check</goal>

spring-boot-project/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<name>Spring Boot Build</name>
1313
<description>Spring Boot Build</description>
1414
<properties>
15-
<main.basedir>${basedir}/../..</main.basedir>
15+
<main.basedir>${basedir}/..</main.basedir>
1616
</properties>
1717
<modules>
1818
<module>spring-boot-dependencies</module>

spring-boot-project/spring-boot-dependencies/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
</developer>
3333
</developers>
3434
<properties>
35+
<main.basedir>${basedir}/../..</main.basedir>
3536
<!-- Dependency versions -->
3637
<activemq.version>5.15.6</activemq.version>
3738
<antlr2.version>2.7.7</antlr2.version>

spring-boot-project/spring-boot-starters/spring-boot-starter-parent/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<description>Parent pom providing dependency and plugin management for applications
1515
built with Maven</description>
1616
<properties>
17+
<main.basedir>${basedir}/../../..</main.basedir>
1718
<java.version>1.8</java.version>
1819
<resource.delimiter>@</resource.delimiter> <!-- delimiter that doesn't clash with Spring ${} placeholders -->
1920
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/reactive/filter/OrderedHiddenHttpMethodFilter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.springframework.boot.web.reactive.filter;
1818

19-
import org.springframework.boot.web.servlet.FilterRegistrationBean;
2019
import org.springframework.core.Ordered;
2120
import org.springframework.web.filter.reactive.HiddenHttpMethodFilter;
2221

@@ -32,8 +31,7 @@ public class OrderedHiddenHttpMethodFilter extends HiddenHttpMethodFilter
3231
/**
3332
* The default order is high to ensure the filter is applied before Spring Security.
3433
*/
35-
public static final int DEFAULT_ORDER = FilterRegistrationBean.REQUEST_WRAPPER_FILTER_MAX_ORDER
36-
- 10000;
34+
public static final int DEFAULT_ORDER = -10000;
3735

3836
private int order = DEFAULT_ORDER;
3937

src/checkstyle/checkstyle.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,19 @@
33
<module name="com.puppycrawl.tools.checkstyle.Checker">
44
<module name="io.spring.javaformat.checkstyle.SpringChecks" />
55
<module name="com.puppycrawl.tools.checkstyle.TreeWalker">
6-
<module name="com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck">
7-
<property name="illegalPkgs" value="sun, org.apache.commons.(?!compress|dbcp2|lang|lang3|logging|pool2).*, com.google.common, org.flywaydb.core.internal, reactor.core.support.Assert"/>
8-
<property name="regexp" value="true"/>
6+
<module
7+
name="com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck">
8+
<property name="regexp" value="true" />
9+
<property name="illegalPkgs"
10+
value="^sun.*, ^org\.apache\.commons\.(?!compress|dbcp2|lang|lang3|logging|pool2).*, ^com\.google\.common.*, ^org\.flywaydb\.core\.internal.*" />
11+
<property name="illegalClasses"
12+
value="^reactor\.core\.support\.Assert" />
13+
</module>
14+
<module
15+
name="com.puppycrawl.tools.checkstyle.checks.imports.ImportControlCheck">
16+
<property name="file"
17+
value="${main.basedir}/src/checkstyle/import-control.xml" />
18+
<property name="path" value="^.*[\\/]src[\\/]main[\\/].*$" />
919
</module>
1020
</module>
1121
</module>

src/checkstyle/import-control.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
<subpackage name="autoconfigure">
77
<subpackage name="web">
8+
<allow pkg="org.springframework.boot.web.server" />
9+
<allow pkg="org.springframework.boot.web.servlet.server" />
810
<disallow pkg="org.springframework.boot.web" />
911
<disallow pkg="org.springframework.web.servlet" />
1012
<disallow pkg="org.springframework.web.reactive" />
1113
<disallow pkg="javax.servlet" />
12-
<allow pkg="org.springframework.boot.web.server" />
13-
<allow pkg="org.springframework.boot.web.servlet.server" />
1414
<subpackage name="client">
1515
<allow pkg="org.springframework.boot.web.client" />
1616
</subpackage>

0 commit comments

Comments
 (0)