Spring Framework 7 and Spring Boot 4: The tastiest bites - JVM Weekly vol. 153
Spring Framework 7 and Spring Boot 4 represent a coordinated major release that modernizes the entire Spring ecosystem. Key changes include migrating from javax to Jakarta EE 11, adopting JSpecify for null-safety, modularizing autoconfiguration, and shifting work from runtime to build-time through AOT compilation. The release introduces native API versioning, built-in resilience patterns, and synergy with OpenJDK's Project Leyden for faster startup times. Spring AI diverges into two streams: version 1.1 for Boot 3.5 focuses on stability, while 2.x for Boot 4 redesigns the architecture for LLM-native applications with MCP agents as first-class citizens.