天天看點

Spring Boot 2.5.1 釋出

Spring Boot 2.5.1 、2.4.7 已經釋出。現在可從 repo.spring.io 和 Maven Central 獲得。

<parent>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-parent</artifactId>
  <version>2.5.1</version>
  <relativePath/>
</parent>      

這是一個提前釋出的 BUG FIX 版本,由于官方在 釋出 SpringBoot 2.5.0 後收到大量的 BUG 回報。 如果你還沒有開始使用 spring boot 2.5.0, 請直接使用 2.5.1 向下相容。

Spring Boot 2.5.1 釋出

修複缺陷

  • 更新 2.5.0 會導緻 Jackson 發出關于 Kotlin 的啟動警告
  • 在 JDK11 環境下 開啟 SecurityManager 無法運作
  • RandomValuePropertySource 存在分母為零的問題
  • 目錄配置存在兩個’.’時,新的配置檔案加載機制失效,導緻無序
  • RestTemplateBuilder 無法同時配置 MetricsRestTemplateCustomizer 和 LocalHostUriTemplateHandler 屬性
  • 當鏡像名包含特殊字元時,新的鏡像建構器無法快速失敗,會一直保持運作
  • spring data 的部分端點名額丢失
  • 無法設定 H2 的 driverClassName ,抛出 UnsupportedDataSourcePropertyException
  • 無法設定 SQL Server 的 jdbc-url ,抛出 UnsupportedDataSourcePropertyException
  • Flyway 和 Liquibase 自定義資料源沒有 url 導緻 java.lang.ClassCastException
  • DataSourceInitializationConfiguration 自定義使用者名/密碼屬性無效
  • spring.datasource.password 的空值會導緻 NullPointerException

其他 BUG 修複、文檔更新和依賴項更新,詳情檢視: