Skip to content

Commit 595f387

Browse files
committed
Correct the references to WebSecurityConfigurerAdapter in the docs
Closes gh-1861
1 parent 3543899 commit 595f387

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,8 +1176,8 @@ the classes imported from there (`SpringBootWebSecurityConfiguration` for web se
11761176
and `AuthenticationManagerConfiguration` for authentication configuration which is also
11771177
relevant in non-web applications). To switch off the Boot default configuration
11781178
completely in a web application you can add a bean with `@EnableWebSecurity`. To customize
1179-
it you normally use external properties and beans of type `WebConfigurerAdapter` (e.g. to
1180-
add form-based login). There are several secure applications in the
1179+
it you normally use external properties and beans of type `WebSecurityConfigurerAdapter`
1180+
(e.g. to add form-based login). There are several secure applications in the
11811181
{github-code}/spring-boot-samples/[Spring Boot samples] to get you started with common
11821182
use cases.
11831183

@@ -1195,7 +1195,7 @@ The basic features you get out of the box in a web application are:
11951195

11961196
All of the above can be switched on and off or modified using external properties
11971197
(`+security.*+`). To override the access rules without changing any other autoconfigured
1198-
features add a `@Bean` of type `WebConfigurerAdapter` with
1198+
features add a `@Bean` of type `WebSecurityConfigurerAdapter` with
11991199
`@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)`.
12001200

12011201
If the Actuator is also in use, you will find:
@@ -1206,7 +1206,7 @@ If the Actuator is also in use, you will find:
12061206

12071207
The Actuator security features can be modified using external properties
12081208
(`+management.security.*+`). To override the application access rules
1209-
add a `@Bean` of type `WebConfigurerAdapter` and use
1209+
add a `@Bean` of type `WebSecurityConfigurerAdapter` and use
12101210
`@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)` if you _don't_ want to override
12111211
the actuator access rules, or `@Order(ManagementServerProperties.ACCESS_OVERRIDE_ORDER)`
12121212
if you _do_ want to override the actuator access rules.

0 commit comments

Comments
 (0)