Skip to content

Commit a220717

Browse files
committed
Make it clearer that unconfigured WebSecConfigAdapter matches any path
Closes gh-5046
1 parent e1950e3 commit a220717

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2033,7 +2033,11 @@ The basic features you get out of the box in a web application are:
20332033
All of the above can be switched on and off or modified using external properties
20342034
(`+security.*+`). To override the access rules without changing any other auto-configured
20352035
features add a `@Bean` of type `WebSecurityConfigurerAdapter` with
2036-
`@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)`.
2036+
`@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)` and configure it to meet your needs.
2037+
2038+
NOTE: By default, a `WebSecurityConfigurerAdapter` will match any path. If you don't want
2039+
to completely override Spring Boot's auto-configured access rules, your adapter must
2040+
explicitly configure the paths that you do want to override.
20372041

20382042

20392043

0 commit comments

Comments
 (0)