Spring Security 5.1 GA 正式发布!

栏目: Java · 发布时间: 5年前

内容简介:Spring 安全框架 Spring Security 5.1 GAPOM该版本关闭了

Spring 安全框架 Spring Security 5.1 GA 现已正式发布

POM

<dependencies>
    <!-- ... other dependency elements ... -->
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-web</artifactId>
        <version>5.1.0.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-config</artifactId>
        <version>5.1.0.RELEASE</version>
    </dependency>
</dependencies>

该版本关闭了 50+ 的 issue ,此外,Spring Security 5.1 也提供了大量的新特性,值得关注的有:

Servlet

WebFlux

Integrations

  • Jackson 支持 和 BadCredentialsException 一起搭配使用

  • @WithMockUser 支持 在测试中设置 SecurityContext 时进行自定义。例如,  @WithMockUser(setupBefore = TestExecutionEvent.TEST_EXECUTION) 将在 JUnit 的 @Before 之后和测试执行之前对用户进行设置

  • 可以使用自定义环境变量配置 LDAP 身份验证

  • X.509 身份验证 支持将主体(principal)派生为策略

详情请查看 https://docs.spring.io/spring-security/site/docs/5.1.0.RELEASE/reference/htmlsingle/#new

Spring Security 的前身是Acegi Security,是 Spring 项目组中用来提供安全认证服务的框架。

Spring Security  为基于 J2EE 企业应用软件提供了全面安全服务。特别是使用领先的 J2EE 解决方案-Spring 框架开发的企业软件项目。人们使用 Spring Security 有很多种原因,不过通常吸引他们的是在 J2EE  Servlet 规范或 EJB 规范中找不到典型企业应用场景的解决方案。


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

APIs

APIs

Daniel Jacobson、Greg Brail、Dan Woods / O'Reilly Media / 2011-12-24 / USD 24.99

Many of the highest traffic sites get more than half of their traffic not through the browser but through the APIs they have created. Salesforce.com (more than 50%) and Twitter (more than 75% fall int......一起来看看 《APIs》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具