Spring Framework 3.2 于 2013 年 12 月 12 日正式发布(General Availability,GA)
Spring Framework 3.2 于 2013 年 12 月 12 日正式发布(General Availability,GA),标志着该版本完成全部测试与验证,进入生产就绪状态。此版本引入了多项重要特性,包括:
- 对 Java 8 的初步支持(如 Lambda 表达式兼容性,但核心仍基于 Java 6+ 编译)
- WebSocket 支持:集成 SockJS 和 STOMP 协议,提供全双工通信能力(需配合 Spring WebSocket 模块)
- @RestController 注解:简化 REST 控制器开发,隐式添加 @ResponseBody
- 改进的异步支持:@Async 增强、CompletableFuture 集成雏形
- 增强的测试支持:@WebAppConfiguration、MockMvc 进一步完善
- 弃用部分旧 API(如 XmlWebApplicationContext 中某些过时方法)
注意:Spring 3.2 是最后一个支持 JDK 5/6 的主版本;后续 4.0+ 要求 JDK 6+(推荐 JDK 7+),且全面转向注解驱动与响应式演进前的基础架构。
<!-- Maven 依赖示例(Spring 3.2.18.RELEASE,最终维护版) --><dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>3.2.18.RELEASE</version></dependency>Spring Framework 3.2 goes GA
Exactly one year after the Spring Framework 3.1 release, I’m pleased to announce that Spring Framework 3.2 is generally available now!
We recommend an upgrade from all previous Spring releases, in particular from Spring Framework 3.1.x which this is a direct successor for.
As previously discussed, key features in Spring Framework 3.2 include:
Refined Java SE 7 support within the framework as well as through upgrades to CGLIB 3.0, ASM 4.0 (both of which we’re inlining now) and AspectJ 1.7 Concurrency refinements across the framework, avoiding the use of synchronization wherever possible - in particular for scoped/prototype beans Allowing for @Autowired and @Value to be used as meta-annotations, e.g. to build custom injection annotations in combination with specific qualifiers Support for custom @Bean definition annotations in @Configuration classes, e.g. in combination with specific qualifiers, @Lazy, @Primary, etc Asynchronous MVC processing on Servlet 3.0, with Spring MVC handler methods being able to return Callables and DeferredResults Inclusion of the formerly-standalone Spring MVC Test project, allowing for first-class testing of Spring MVC applications Support for loading WebApplicationContexts in the TestContext framework, and further improvements for web application testing Early support for JCache 0.5 (JSR-107) as a backend for Spring’s cache abstractionFor further details, in particular the many enhancements in Spring MVC, have a look at the New Features and Enhancements in Spring Framework 3.2 section in our documentation.
This release incorporates a lot of community feedback, so let me take the opportunity to say thank you to all reporters and contributors! Keep it coming as we’re moving into 2013, working on the next generation of the framework…
Cheers,
