mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-21 19:42:13 +00:00
SEC-2773: Prevent premature container initialization in WebSecurityConfiguration.
Changed the bean definition method for the DelegatingApplicationListener to be static to avoid the need to instantiate the configuration class which caused further premature initializations to satisfy the dependencies expressed in setFilterChainProxySecurityConfigurer(…).
This commit is contained in:
parent
cdac4d990b
commit
c05f27af6c
@ -74,7 +74,7 @@ public class WebSecurityConfiguration implements ImportAware, BeanClassLoaderAwa
|
||||
private ClassLoader beanClassLoader;
|
||||
|
||||
@Bean
|
||||
public DelegatingApplicationListener delegatingApplicationListener() {
|
||||
public static DelegatingApplicationListener delegatingApplicationListener() {
|
||||
return new DelegatingApplicationListener();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user