Spring Framework 6.1 has been officially released .
Main changes
- Support JDK 21 LTS
- Support virtual threads
- Support recovery of JVM Checkpoint
- Introducing "resource life cycle management"
- Introducing "data binding and validation"
- Added RestClient and JdbcClient API
In terms of efficient deployment options on the HotSpot JVM, Spring Framework 6.1 is tightly integrated with Project CRaC for JVM checkpoint deployment: check out JVM Checkpoint Restore , the announcement reads . In addition, Spring users can also take advantage of the latest AppCDS features in JDK 21, which are pre-aligned with OpenJDK's Project Leyden.
In addition, Spring Framework 6.1 provides first-level support for JDK 21 and Jakarta EE 10 at runtime, while retaining the JDK 17 and Jakarta EE 9 baselines. Spring is also tracking the evolution of GraalVM for JDK 21 through fine-grained metadata inference, while temporarily maintaining compatibility with GraalVM 22.3.
The documentation shows that Spring 6.1 is fully compatible with virtual threads ( Virtual Threads ) and JDK 21.
Virtual thread configuration options: dedicated VirtualThreadTaskExecutor and virtual thread mode on SimpleAsyncTaskExecutor , and similar SimpleAsyncTaskScheduler with new-thread-per-task strategy and virtual thread mode .
See the What's New page for details .