SpringSecurity主要配置类为WebSecurityConfig类。其中,主要用其实现类进行配置,代码如下:
@Configurationpublic class SecurityConfig extends WebSecurityConfigurerAdapter {@Overrideprotected void configure(HttpSecurity http) throws Exception {}@Overrideprotected void configure(AuthenticationManagerBuilder auth) throws Exception {}}
