对于最新的稳定版本,请使用 Spring Security 6.3.1! |
对于最新的稳定版本,请使用 Spring Security 6.3.1! |
Spring Security 5.8 提供了许多新功能。 以下是该版本的亮点。
核心
AuthorizationManager API
杂项
-
GH-10973 - 可以发布为
SecurityContextHolderStrategy
@Bean
配置
-
GH-11771 - 应该支持方法
HttpSecurityDsl
apply
Web
-
gh-11073 - 添加
DelegatingServerHttpHeadersWriter
-
gh-4001 - 添加对 CSRF BREACH 保护的 servlet 支持
-
gh-11464 - Remember Me 支持 SHA256 算法
-
gh-11908 - 在 ServerHttpSecurity 中使 X-Xss-Protection 标头值可配置
-
gh-11347 - 简化 Java 配置用法
RequestMatcher
-
gh-9159 - 在
securityMatcher
requestMatcher
HttpSecurity
-
gh-11952 - 添加到
csrfTokenRequestResolver
CsrfDsl
-
GH-11916 - 捡起豆子
HttpSecurityConfiguration
ContentNegotiationStrategy
-
gh-11971 - 对运行所有调度程序类型的额外支持
AuthorizationFilter
测试
-
GH-6899 - 用作元注释
@WithMockUser