On December 22, Spring officially released Spring Boot 2.5.8 (including 46 bug fixes, documentation improvements, and dependency upgrades) and 2.6.2 (including 55 bug fixes, documentation improvements, and dependency upgrades).

These two versions are bug fix versions. It is worth noting that the log4j2 version upgrade that has plagued you recently has been updated in these two versions. If you are using log4j2, you can do this upgrade.

2.6.2 version content

Users can already obtain 2.6.2 dependencies through the following Maven coordinates:

<parent>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-parent</artifactId>
  <version>2.6.2</version>
  <relativePath/> <!-- lookup parent from repository -->
</parent>

Defect repair

  • When the getter or setter is overridden by the subclasses of the property configuration type, the getter and setter used during the property binding will be different #29143
  • DatabaseInitializationDependencyConfigurer triggers the starvation initialization of factory beans #29103
  • Spring boot 2.6.0 Quartz's mysql/mariadb table will not create #29095
  • Initialization for Quartz, Session, Intergration, and Batch mode platforms cannot complete the configuration #29002
  • When the application depends on thymeleaf-extras-springsecurity5 , but there is no Spring Security on the classpath, the application cannot be started #28979
  • ResponseStatusException using spring security in version 2.6.1 no longer returns response body #28953
  • DataSourceScriptDatabaseInitializer may still try to access the database, even if its initialization mode is never #28931
  • When setUseCodeAsDefaultMessage is set to true, Hibernate authentication information is destroyed in spring boot 2.6.1. #
  • The reference of the mirror build package without tags does not default to the latest version #28922
  • The classpath index manifest attribute in the war package built with Maven is invalid #28904
  • When deployed to the Servlet 3.1 compatible container, org.springframework.boot.web.servlet.filter.ErrorPageSecurityFilter in AbstractMethodError triggered # 28902
  • Setting the time-to-live cache for the health endpoint has no effect #28882
  • server.servlet.session.cookie.same-site not applied to the SESSION cookie of Spring Session. #28784
Spring Boot tutorial , which has been continuously updated for many years, should not be missed!

Dependency upgrade

Official announcement: https://spring.io/blog/2021/12/21/spring-boot-2-6-2-available-now

2.5.8 version content

Users can already obtain 2.5.8 dependencies through the following Maven coordinates:

<parent>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-parent</artifactId>
  <version>2.5.8</version>
  <relativePath/> <!-- lookup parent from repository -->
</parent>

Defect repair

  • DatabaseInitializationDependencyConfigurer triggers the starvation initialization of the factory bean #28977
  • When the application depends on thymeleaf-extras-springsecurity5 , but there is no Spring Security on the classpath, the application cannot be started #28967
  • Initialization for Quartz, Session, Intergration, and Batch mode platforms cannot complete the configuration #28932
  • The reference of the mirror build package without tags does not default to the latest version #28921
  • When the getter or setter is overridden by the subclasses of the attribute configuration type, the getter and setter used during the attribute binding will be different #28917
  • The classpath index manifest attribute in the war package built with Maven is invalid #28895
  • PatternParseException Behavior message failure analysis The attribute name of the matching policy is incorrect. #28809
  • org.elasticsearch.distribution.integ-test-zip:elasticsearch should declare its type as zip #28725
Spring Boot tutorial , which has been continuously updated for many years, should not be missed!

Dependency upgrade

Official announcement: https://spring.io/blog/2021/12/21/spring-boot-2-5-8-available-now

Welcome to pay attention to my official account: Program Ape DD. Learn about cutting-edge industry news for the first time, share in-depth technical dry goods, and obtain high-quality learning resources


程序猿DD
2.2k 声望2.8k 粉丝

作品:《Spring Cloud微服务实战》、SpringForAll社区、OpenWrite、Youtube中文配音