spring-security

代码主要划分为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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值