Spring Boot 2.5.1 发布

463 阅读1分钟

Spring Boot 目前是大家使用最多、最频繁的框架,大家对它的bug修复、新特性引入都备受关注,这不,Spring Boot 2.5.1 版本发布了,不妨让我们一起看看它又带来了什么,看看你是否需要升级它。

这是一个提前发布的 BUG FIX 版本,由于官方在 发布 SpringBoot 2.5.0 后收到大量的 BUG 反馈。 如果你还没有开始使用 spring boot 2.5.0, 请直接使用 2.5.1 向下兼容。

🐞 Bug Fixes:

  • 升级 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 修复、文档更新和依赖项升级,详情查看:

  1. spring.io/blog/2021/0…
  2. github.com/spring-proj…