What’s New in Spring Boot 2.4.1? Key Bug Fixes You Should Know
Spring Boot 2.4.1, the final release of the year, focuses on fixing numerous configuration‑related bugs across the 2.4.x line, providing developers with a more stable upgrade path and addressing issues from property binding to Actuator endpoints.
Spring Boot recently released its last update of the year, covering three maintained branches: 2.4.x (bug‑fix version 2.4.1), 2.3.x (maintenance version 2.3.7), and 2.2.x (maintenance version 2.2.12). Because 2.2.x and 2.3.x are already stable, the focus is on the 2.4.1 update.
2.4.1 Version Details
The 2.4.0 release introduced major changes to the configuration loading mechanism, leading to various upgrade issues. Version 2.4.1 primarily resolves many configuration‑related bugs. The key problems fixed include:
Configuration files matched by wildcards overriding each other.
Order of binding between configuration properties and JavaBeans.
Allowing recursive configuration file group references.
External application property loading order issues.
Failure of @Name binding in Kotlin.
Excessive performance cost of the Redis health indicator.
Actuator endpoints under MVC and WebFlux not correctly responding to custom HTTP status codes.
Env endpoint of Actuator not displaying wrapper‑type data correctly.
Missing converters when binding non‑string properties via the configuration tree.
NullPointerException when invoking LoggingSystem with Log4J.
Loss of content after ‘#’ comments when loading property files.
Ensuring WebClient exists before enabling WebTestClientContextCustomizer.
These fixes target configuration handling extensively. Have you encountered any of these issues during your upgrade?
For more details and related issues, see the official release page:
https://github.com/spring-projects/spring-boot/releases/tag/v2.4.1
Additional Spring Boot learning resources are available at:
http://blog.didispace.com/spring-boot-learning-2x/
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
