@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled=true)
public class WebSecurityConfig
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
| Constructor and Description |
|---|
WebSecurityConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) |
org.springframework.web.cors.CorsConfigurationSource |
corsConfigurationSource() |
UserContext |
getUserContext(javax.servlet.http.HttpServletRequest request)
The user context object is used to hold everything associated with the current user request.
|
authenticationManager, authenticationManagerBean, configure, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBeanprotected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws Exception
configure in class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterException@Bean
@Primary
@Scope(scopeName="request",
proxyMode=TARGET_CLASS)
public UserContext getUserContext(javax.servlet.http.HttpServletRequest request)
request - @Bean public org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource()
Copyright © 2018. All rights reserved.