Spring Framework 6.0.0 is generally available from Maven Central now! It was quite some time since a major release last happened but this release focuses on 2023 for embracing current and upcoming innovations in OpenJDK and the Java ecosystem. At the same time, it is carefully designed it as a straightforward upgrade from Spring Framework 5.3.x
The main features are:
- Java 17+ baseline
- A move to Jakarta EE 9+ (in the
jakarta
namespace), with a focus on the recently released Jakarta EE 10 APIs such as Servlet 6.0 and JPA 3.1 - the latest web containers such as Tomcat 10.1
- the latest persistence providers such as Hibernate ORM 6.1
Infrastructure-wise, 6.0 introduces a foundation for Ahead-Of-Time transformations and the corresponding AOT processing support for Spring application contexts.
This enables first-class support for GraalVM native images with Spring Boot 3. You may also explore Project Loom’s virtual threads with Spring applications – see “Embracing Virtual Threads” – and dive into Project CRaC ’s checkpoint restore approach for faster JVM startups, both of which are in preview at this point but expected to become first-class features for Spring Framework 6.x based applications.
There are many further features and refinements available in Spring Framework 6.0, e.g. an HTTP interface client, support for RFC 7807 problem details, and Micrometer-based observability for HTTP clients. Please see our What’s New page for a comprehensive overview and give 6.0.0 an early try!
Project Page | GitHub | Documentation
Source: https://spring.io/blog/2022/11/16/spring-framework-6-0-goes-ga