「2020封箱」Spring Boot 2.4.1 发布
共 2247字,需浏览 5分钟
·
2020-12-13 09:57
本次发版为官方 2020 年度最后一次发版,Spring Boot 2.4.1、 2.3.7.RELEASE、 2.2.12.RELEASE 已发布,现在均可在 maven 中央仓库下载使用。
<parent>
<groupId>org.springframework.bootgroupId>
<artifactId>spring-boot-starter-parentartifactId>
<version>${version}version>
parent>
重点关注 2.4.1 版本,作为 2.4.x 第一个错误修正版本,此版本包括 59 个错误修复,文档改进和依赖项升级,主要修复 2.4.0 发布以来的关于配置文件加载变更问题。
? Bug 修复
无法处理# 标注后的属性文件会被直接忽略
通配符路径的配置文件相互覆盖
配置文件引用触发死循环
配置文件属性和 JavaBean 绑定没有顺序
解析 classpath 异常抛出 ConfigDataResourceNotFoundException
configtree 无法绑定非字符串类型,提示没有转换器
@Name 无法绑定 Kotlin 类型
/actuator/env 端点针对包装类数据显示错误
/actuator/health 端点和自定义 http 响应码无法兼容
redis 健康检查器 影响 redis 性能
使用 Log4J 的 LoggingSystem 调用将引发 NPE
? 依赖升级
Upgrade to Caffeine 2.8.8 #24443 Upgrade to DB2 JDBC 11.5.5.0 #24383 Upgrade to Dropwizard Metrics 4.1.16 #24384 Upgrade to Groovy 2.5.14 #24385 Upgrade to Hibernate 5.4.25.Final #24386 Upgrade to HttpCore 4.4.14 #24387 Upgrade to Infinispan 11.0.8.Final #24388 Upgrade to Jetty 9.4.35.v20201120 #24389 Upgrade to jOOQ 3.14.4 #24390 Upgrade to Kotlin 1.4.21 #24391 Upgrade to Kotlin Coroutines 1.4.2 #24392 Upgrade to MariaDB 2.7.1 #24393 Upgrade to Micrometer 1.6.2 #24281 Upgrade to Mockito 3.6.28 #24394 Upgrade to Netty 4.1.55.Final #24444 Upgrade to Netty tcNative 2.0.35.Final #24445 Upgrade to Nimbus JOSE JWT 9.1.3 #24395 Upgrade to Reactor 2020.0.2 #24275 Upgrade to Spring AMQP 2.3.2 #24288 Upgrade to Spring Batch 4.3.1 #24291 Upgrade to Spring Data 2020.0.2 #24284 Upgrade to Spring Framework 5.3.2 #24278 Upgrade to Spring HATEOAS 1.2.2 #24285 Upgrade to Spring Integration 5.4.2 #24442 Upgrade to Spring Kafka 2.6.4 #24294 Upgrade to Spring Security 5.4.2 #24297 Upgrade to SQLite JDBC 3.32.3.3 #24446 Upgrade to Tomcat 9.0.41 #24447 Upgrade to Undertow 2.2.3.Final #24397
v2.4.1 详细更新说明查看[1]
v2.3.7 详细更新说明查看[2]
v2.2.12 详细更新说明查看[3]
参考资料
v2.4.1 详细更新说明查看: https://github.com/spring-projects/spring-boot/releases/tag/v2.4.1
[2]v2.3.7 详细更新说明查看: https://github.com/spring-projects/spring-boot/releases/tag/v2.3.7.RELEASE
[3]v2.2.12 详细更新说明查看: https://github.com/spring-projects/spring-boot/releases/tag/v2.2.12.RELEASE
往期推荐