@Configuration @ConditionalOnBean(value=org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.class) @ConditionalOnMissingBean(name="springSecurityFilterChain") @ConditionalOnWebApplication(type=SERVLET) @EnableWebSecurity public class WebSecurityEnablerConfiguration extends Object
EnableWebSecurityannotation. This will make sure that the annotation is present with default security auto-configuration and also if the user adds custom security and forgets to add the annotation. If
EnableWebSecurityhas already been added or if a bean with name has been configured by the user, this will back-off.
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.