What’s New in Spring Framework 6.0? A Deep Dive into Java 17, Jakarta EE, and AOT
Spring Framework 6.0 RC1, requiring Java 17+, migrates to Jakarta EE 9+, introduces AOT compilation, native GraalVM support, virtual‑thread executor options, and new HTTP client features, while supporting the latest servlet containers and Hibernate ORM, with upcoming Spring Boot 3.0 releases.
Official Announcement: Spring Framework 6.0 Major Update
Spring Framework 6.0 RC1 requires Java 17 or higher and has migrated to Jakarta EE 9+ (replacing the previous javax‑based APIs). It also updates support for modern infrastructure, including the latest servlet containers such as Tomcat 10 and Jetty 11, and the newest persistence framework Hibernate ORM 6.1. These features are available only for the Jakarta‑namespace variants of the Servlet API and JPA.
A key change in this release is the completion of Ahead‑of‑Time (AOT) compilation for Spring application contexts, enabling optimized deployment scenarios ranging from finely tuned JVM deployments to first‑class support for GraalVM native images.
Developers can also experiment with virtual threads (the preview “Project Loom” feature in JDK 19) through a custom option that allows inserting a virtual‑thread‑based Executor implementation, preparing the framework for native support when Project Loom becomes generally available.
Other notable improvements and features in Spring 6.0
HTTP client based on @HttpExchange service interfaces.
Support for detailed problem information per RFC 7807.
Spring HTTP client observability powered by Micrometer.
…
The team also announced that the first RC of Spring Boot 3.0 and the second RC of Spring Framework 6.0 will be released next week, with the GA scheduled for November.
Release announcement: https://spring.io/blog/2022/10/12/spring-framework-6-0-goes-rc1
Download: https://github.com/spring-projects/spring-framework/releases/tag/v6.0.0-RC1
New features overview: https://github.com/spring-projects/spring-framework/wiki/What%27s-New-in-Spring-Framework-6.x/
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.
Java High-Performance Architecture
Sharing Java development articles and resources, including SSM architecture and the Spring ecosystem (Spring Boot, Spring Cloud, MyBatis, Dubbo, Docker), Zookeeper, Redis, architecture design, microservices, message queues, Git, etc.
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.
