@ConditionalOnProperty(prefix="security.basic", name="enabled", havingValue="false") @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 @EnableWebSecurity public class FallbackWebSecurityAutoConfiguration extends Object
@EnableWebSecurity
, and yet still wants a bean of type
WebSecurityConfigurerAdapter, he is trying to use a custom security setup. The app
would fail in a confusing way without this shim configuration, which just helpfully
defines an empty @EnableWebSecurity
.Copyright © 2016 Pivotal Software, Inc.. All rights reserved.