@ConditionalOnBean(value=org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.class) @ConditionalOnClass(value=org.springframework.security.config.annotation.web.configuration.EnableWebSecurity.class) @ConditionalOnMissingBean(value=org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) @EnableWebSecurity public class WebSecurityEnablerConfiguration extends Object
@EnableWebSecurity
annotation if it is not already specified. 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.Copyright © 2017 Pivotal Software, Inc.. All rights reserved.