@Configuration @ConditionalOnClass(value={org.springframework.security.authentication.AuthenticationManager.class,org.springframework.security.config.annotation.web.configuration.EnableWebSecurity.class}) @EnableConfigurationProperties(value=SecurityProperties.class) @Import(value={SpringBootWebSecurityConfiguration.class,WebSecurityEnablerConfiguration.class,AuthenticationManagerConfiguration.class,SecurityDataConfiguration.class}) public class SecurityAutoConfiguration extends Object
Auto-configuration
for Spring Security. Provides an
InMemoryUserDetailsManager
with one user (named "user") whose password is
random and printed on the console at INFO level during startup. In a webapp, this
configuration also secures all web endpoints (including static resources).Constructor and Description |
---|
SecurityAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.security.authentication.DefaultAuthenticationEventPublisher |
authenticationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
@Bean @ConditionalOnMissingBean(value=org.springframework.security.authentication.AuthenticationEventPublisher.class) public org.springframework.security.authentication.DefaultAuthenticationEventPublisher authenticationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.