Spring Office Hours

S4E29 - Spring Boot 4 is (almost) here!

20 snips
Nov 4, 2025
Dive into the exciting advancements of Spring Framework 7 and Spring Boot 4! Discover the new null safety features that reduce runtime errors and how teams can adopt them progressively. Learn about the enhanced REST test client that simplifies API testing and the importance of built-in API versioning for enterprise consistency. Get insights on programmatic bean registration and the latest upgrades in associated ecosystem projects like Spring Security and Jackson 3. There's plenty to explore for anyone interested in Spring's evolution!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
INSIGHT

JDK 25 Optimization Without Breaking Baseline

  • Spring Boot 4 is optimized for JDK 25 while remaining baselined on Java 17 for compatibility.
  • Upgrading the JVM alone (to Java 21/25) yields immediate performance and feature gains like virtual threads and scope values.
ADVICE

Upgrade the JVM First

  • Do upgrade your JVM even before moving to Spring Boot 4 to get free performance and cost benefits.
  • Run a side-by-side test on Java 17 vs Java 21/25 to demonstrate gains and convince stakeholders.
INSIGHT

Null Safety Moves Left Into Build And IDE

  • Spring projects adopt JSpecify annotations to catch nullability issues at build time and in IDEs like IntelliJ.
  • This shifts null-pointer detection earlier and gives developers stronger confidence before shipping.
Get the Snipd Podcast app to discover more snips from this episode
Get the app