|
@@ -28,7 +28,7 @@ import org.springframework.security.web.method.annotation.CsrfTokenArgumentResol
|
|
import org.springframework.security.web.servlet.support.csrf.CsrfRequestDataValueProcessor;
|
|
import org.springframework.security.web.servlet.support.csrf.CsrfRequestDataValueProcessor;
|
|
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
|
|
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
|
|
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
|
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
|
-import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
|
|
|
|
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
import org.springframework.web.servlet.support.RequestDataValueProcessor;
|
|
import org.springframework.web.servlet.support.RequestDataValueProcessor;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -41,7 +41,7 @@ import org.springframework.web.servlet.support.RequestDataValueProcessor;
|
|
* @author Rob Winch
|
|
* @author Rob Winch
|
|
* @since 3.2
|
|
* @since 3.2
|
|
*/
|
|
*/
|
|
-class WebMvcSecurityConfiguration extends WebMvcConfigurerAdapter implements ApplicationContextAware {
|
|
|
|
|
|
+class WebMvcSecurityConfiguration implements WebMvcConfigurer, ApplicationContextAware {
|
|
private BeanResolver beanResolver;
|
|
private BeanResolver beanResolver;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -64,4 +64,4 @@ class WebMvcSecurityConfiguration extends WebMvcConfigurerAdapter implements App
|
|
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
|
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
|
this.beanResolver = new BeanFactoryResolver(applicationContext.getAutowireCapableBeanFactory());
|
|
this.beanResolver = new BeanFactoryResolver(applicationContext.getAutowireCapableBeanFactory());
|
|
}
|
|
}
|
|
-}
|
|
|
|
|
|
+}
|