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