主要观点:2025 年 7 月 21 日当周,Spring 生态系统有一系列活动,包括多个 Spring 相关项目的里程碑版本发布。
关键信息:
- 发布了 Spring Boot 4.0.0 M1、Spring Security 7.0.0 M1、Spring Authorization Server 2.0.0 M1、Spring for GraphQL 2.0.0、Spring Session 4.0.0 M1、Spring Integration 7.0.0 M1、Spring Modulith 2.0.0 M1、Spring REST Docs 4.0.0 M1、Spring Batch 6.0.0、Spring AMQP 4.0.0 M3、Spring for Apache Kafka 4.0.0 M3、Spring for Apache Pulsar 2.0.0 M1、Spring Web Services 5.0.0 M1 等。
- 各项目的里程碑版本都有新功能、依赖升级、修复 bug 等,如 Spring Boot 增加类型引用能力等,Spring Security 新增类和改进类等。
重要细节: - Spring Boot 4.0.0 中
[@ConfigurationProperties]
可引用不同模块类型,OperationMethod
构造参数有变更等。 - Spring Security 7.0.0 M1 有新的
BearerTokenAuthenticationConverter
类等,存在一些破坏性变更。 - Spring Authorization Server 2.0.0 有 Gradle 依赖等变更。
- Spring for GraphQL 2.0.0 迁移空注解等。
- Spring Session 4.0.0 依赖升级。
- Spring Integration 7.0.0 M1 迁移空注解等,移除 Joda-Time 支持。
- Spring Modulith 2.0.0 有事件发布注册生命周期重构等。
- Spring REST Docs 4.0.0 支持 JSpecify 等。
- Spring Batch 6.0.0 有新的
CommandLineJobOperator
类等。 - Spring AMQP 4.0.0 M3 改进
BlockingQueueConsumer
类等。 - Spring for Apache Kafka 4.0.0 M3 增加 JSpecify 注解等。
- Spring for Apache Pulsar 2.0.0 M1 进行相关依赖升级和变更。
- Spring Web Services 5.0.0 M1 迁移空注解等并与其他框架对齐。
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。