Spring Boot 4.0.0 正式发
Spring Boot 4.0.0 现已正式发布,"此版本标志着新一代 Spring Boot 的诞生,为未来几年奠定了坚实的基础。"
新版本基于 Spring Framework 7 构建,并包含许多新特性
Spring Framework 7.0 General Availability
RELEASES | JUERGEN HOELLER | NOVEMBER 13, 2025 | ...
Dear Spring community,
On behalf of the team and everyone who has contributed, I am pleased to announce that Spring Framework 7.0 is generally available now! Spring Framework 7.0 is the beginning of a new framework generation with a focus on Java 25 and the latest open source ecosystem, serving as the foundation for Spring Boot 4.0.
This generation of Spring comes with a pragmatic baseline and dependency upgrade:
- Embracing Java 25 (as the latest LTS) while retaining a Java 17 baseline
- Jakarta EE 11 API level: Servlet 6.1, JPA 3.2, Bean Validation 3.1
- Comprehensive null safety through JSpecify
- Support for Jackson 3.0 (retaining deprecated support for Jackson 2.x)
- Kotlin 2.2
- JUnit 6.0
Our initial Spring Framework 7.0 release ships with a wide range of new features, including:
- Programmatic bean registration
- Core resilience features
- JmsClient
- API versioning
- HTTP Interface Client configuration
- RestTestClient
Check out our release notes for a comprehensive overview of enhancements and upgrade notes.
Cheers, Juergen
Project Page | GitHub | Issues | Documentation
对 Spring Boot 代码库进行完全模块化改造,提供更小、更专注的 jar 包。
通过 JSpecify 对整个产品组合的 null safety 进行改进。
对 Java 25 提供一流的支持(同时保持与 Java 17 的兼容性)。
支持基于 REST 的应用程序的 API 版本控制和 HTTP 服务客户端。