Spring Security
Spring Security 是 Spring 生态中的安全框架,提供认证(Authentication)、授权(Authorization)和防护(Protection)功能。
文档列表
- 认证流程深度解析 — SecurityContextHolder、ProviderManager、AuthenticationProvider 链、记住我、自定义 Provider、短信验证码登录
- AccessDecisionManager 与投票器 — AffirmativeBased/ConsensusBased/UnanimousBased、RoleVoter、自定义投票器、分级审批
- 安全过滤器扩展 — OncePerRequestFilter、Filter 排序、SecurityFilterChain 多链、API 签名认证
- JWT 深入 — jjwt、RS256/ES256、Token 刷新、黑名单、无状态 vs 有状态选型
- 数据脱敏与加解密 — TextEncryptor、MyBatis TypeHandler、Jackson 脱敏、日志脱敏
- 安全测试专题 — @WithMockUser、CSRF 测试、OAuth2 测试、10 种安全场景测试
- Spring Security 响应式 — SecurityWebFilterChain、ReactiveAuthenticationManager、WebFlux JWT
- 测试与方法安全 — @PreAuthorize/@PostAuthorize/@PreFilter/@PostFilter、AuthorizationManagerBeforeMethodInterceptor 源码、REST API 权限落地
- 安全审计与日志 — 事件监听、AOP 审计、审计日志表设计、链式哈希防篡改
- 用户中心 + 权限管理实战 — RBAC 五级体系、JWT Token、密码策略、MFA、数据权限、审计日志