|
@@ -440,7 +440,7 @@ import org.springframework.security.config.annotation.authentication.builders.*;
|
|
|
import org.springframework.security.config.annotation.web.configuration.*;
|
|
|
|
|
|
@EnableWebSecurity
|
|
|
-public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
+public class WebSecurityConfig implements WebMvcConfigurer {
|
|
|
|
|
|
@Bean
|
|
|
public UserDetailsService userDetailsService() throws Exception {
|
|
@@ -3927,7 +3927,7 @@ When using Spring Web MVC, this is typically done within your configuration. For
|
|
|
[source,java]
|
|
|
----
|
|
|
@EnableWebMvc
|
|
|
-public class WebMvcConfiguration extends WebMvcConfigurerAdapter {
|
|
|
+public class WebMvcConfiguration implements WebMvcConfigurer {
|
|
|
|
|
|
@Override
|
|
|
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
|
@@ -6868,7 +6868,7 @@ NOTE: As of Spring Security 4.0, `@EnableWebMvcSecurity` is deprecated. The repl
|
|
|
|
|
|
To enable Spring Security integration with Spring MVC add the `@EnableWebSecurity` annotation to your configuration.
|
|
|
|
|
|
-NOTE: Spring Security provides the configuration using Spring MVC's http://docs.spring.io/spring-framework/docs/4.1.x/spring-framework-reference/htmlsingle/#mvc-config-customize[WebMvcConfigurerAdapter]. This means that if you are using more advanced options, like integrating with `WebMvcConfigurationSupport` directly, then you will need to manually provide the Spring Security configuration.
|
|
|
+NOTE: Spring Security provides the configuration using Spring MVC's https://docs.spring.io/spring/docs/5.0.0.RELEASE/spring-framework-reference/web.html#mvc-config-customize[WebMvcConfigurer]. This means that if you are using more advanced options, like integrating with `WebMvcConfigurationSupport` directly, then you will need to manually provide the Spring Security configuration.
|
|
|
|
|
|
[[mvc-requestmatcher]]
|
|
|
=== MvcRequestMatcher
|