Spring Security 5.1 GA 正式发布!

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

内容简介: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 规范中找不到典型企业应用场景的解决方案。


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

查看所有标签

猜你喜欢:

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

Dynamic Programming

Dynamic Programming

Richard Bellman / Dover Publications / 2003-03-04 / USD 19.95

An introduction to the mathematical theory of multistage decision processes, this text takes a "functional equation" approach to the discovery of optimum policies. The text examines existence and uniq......一起来看看 《Dynamic Programming》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码