代码主要划分为authentication和authority两部分
认证(authentication)
相关类
AuthenticationManager
AuthenticationProvider
授权(authority)
AccessDecisionManager
SecurityMetadataSource
综合认证、授权
AbstractSecurityInterceptor
FilterSecurityInterceptor
MethodSecurityInterceptor
配置
@EnableWebSecurity
//WebSecurityConfigurer允许对WebSecurity进行定制化,
//在绝大部分情景下,开发者使用@EnableWebSecurity注解或
//者对WebSecurityConfigurerAdapter进行重写的方式来自
//动应用@EnableWebSecurity注解
WebSecurityConfigurer
WebSecurityConfigurerAdapter
启动
通过注解@EnableWebSecurity启动安全配置,WebSecurityConfiguration会被自动执行
继续阅读
https://www.cnblogs.com/davidwang456/p/6522925.html
http://fengyilin.iteye.com/blog/2409220