本文宣布 Spring Boot 4.0.0 的正式发布,标志着该框架进入新的发展阶段。此主要版本构建于 Spring Framework 7 之上,引入了多项重要功能。主要改进包括代码库的完全模块化架构,从而产生更小、更集中的 JAR 包,以及通过 JSpecify 实现的整个 Spring 生态系统的空安全增强。它还为 Java 25 带来全面支持,同时保持与 Java 17 的兼容性。此外,该版本还为 API 版本控制和 HTTP 服务客户端提供强大的支持,以支持现代 REST 应用程序开发。本文将用户引导至详细的发行说明,以获取完整的功能列表。同时,提供了专门的迁移指南,以帮助升级现有应用程序。最后,欢迎社区积极贡献,并提供全方位的支持资源。
On behalf of the team and everyone who has contributed, I'm extremely happy to announce that Spring Boot 4.0.0 has been released and is now available from Maven Central.
This release is the beginning of a new Spring Boot generation providing solid foundations for coming years. Building on top of Spring Framework 7, there are a number of exciting new features in this release, including:
- A complete modularization of the Spring Boot codebase providing smaller and more focused jars.
- Portfolio-wide improvements for null safety with JSpecify.
- First class support for Java 25 (whilst retaining Java 17 compatibility).
- Support for API Versioning and HTTP Service Clients for REST based applications.
For a complete list of new feature, please see the release notes.
Since this is a major release of Spring Boot, upgrading existing applications can be a little more involved that usual so you'll also want to check out the dedicated migration guide.
Thanks to all those who have contributed with issue reports and pull requests for this release. Especially those that have tried the milestones and release candidates. Your feedback has been invaluable!
How can you help?
If you're interested in helping out, check out the "ideal for contribution" tag in the issue repository. If you have general questions, please ask on stackoverflow.com using the spring-boot tag.
Project Page | GitHub | Issues | Documentation | Stack Overflow

