@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @EnableConfigurationProperties(value=SecurityProperties.class) @ConditionalOnClass(value={org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer.class,org.springframework.security.config.http.SessionCreationPolicy.class}) @AutoConfigureAfter(value=SecurityAutoConfiguration.class) public class SecurityFilterAutoConfiguration extends Object
Auto-configuration
for Spring Security's Filter.
Configured separately from SpringBootWebSecurityConfiguration
to ensure that
the filter's order is still configured when a user-provided
WebSecurityConfiguration
exists.Constructor and Description |
---|
SecurityFilterAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
DelegatingFilterProxyRegistrationBean |
securityFilterChainRegistration(SecurityProperties securityProperties) |
@Bean @ConditionalOnBean(name="springSecurityFilterChain") public DelegatingFilterProxyRegistrationBean securityFilterChainRegistration(SecurityProperties securityProperties)