Spring Framework 3.0 RC2 released

Engineering
Juergen Hoeller
November 13, 2009

It is my pleasure to announce that we released the second Spring 3.0 release candidate today (download page). This release introduces key improvements over RC1 in several areas, in particular:

Spring 3.0 RC2 is fully JSR-330 compliant and passes the final version of the TCK. JSR-330, a.k.a. “Dependency Injection for Java”, basically standardizes an @Inject annotation with a qualifier model. The “javax.inject” annotations can now be used as alternative to Spring’s own @Autowired and @Qualifier annotations. Spring’s <context:annotation-config> element automatically activates JSR-330 processing as well (if the “javax.inject” API is present).

A dedicated AnnotationConfigApplicationContext: making programmatic bootstrapping as convenient as possible, without any XML involved. Explicit registration of annotated classes is supported as well as component scanning in the classpath. This works fine not only with Spring’s @Component model but also with @Configuration classes (a.k.a. “JavaConfig”) and JSR-330 compliant classes.

A new mvc configuration namespace: <mvc:annotation-driven/> activates rich processing of @Controller classes, including support for annotation-driven formatting and annotation-driven validation (if a JSR-303 “Bean Validation” provider such as Hibernate Validator 4.0 is present). The newly revised version of our formatting package also comes with support for the popular Joda Time library.

Revised lifecycle management at runtime: Auto-starting message listener containers and schedulers will now kick off once context configuration has been fully completed. On context close, a specific shutdown order can be defined for ‘phased’ stopping of lifecycle components. A configurable LifecycleProcessor delegate provides corresponding customization hooks.

Finally, RC2 comes with many refinements in the details: e.g. revised URI encoding for proper treatment of special characters in any part of the request URL; refined scope handling in parent-child relationships for inheriting a bean’s scope; support for load-time weaving on JBoss 5.x; etc.

Spring 3.0 GA is just around the corner now…

P.S.: Special thanks to all the people in the ‘extended’ Spring developer team - both within and outside of SpringSource - who made this release possible! You rock 😃
comments powered by Disqus

translate:
翻译:

SpringFramework3.0RC2发布
工程类
尤尔根·霍勒
2009年11月13日
我很高兴地宣布,我们今天发布了第二个Spring3.0候选版本(下载页面)。此版本在几个方面引入了对RC1的关键改进,特别是:
Spring 3.0rc2完全符合JSR-330,并通过了TCK的最终版本。JSR-330,也就是“Java的依赖注入”,基本上用限定符模型标准化了@Inject注释。“javax.inject”注释现在可以作为Spring自己的@Autowired和@Qualifier注释的替代。Spring的<context:annotation config>元素也会自动激活JSR-330处理(如果存在“javax.inject”API)。
专用注释configapplicationcontext:使编程引导尽可能方便,不涉及任何XML。支持注释类的显式注册以及类路径中的组件扫描。这不仅适用于Spring的@Component模型,也适用于@Configuration类(也称为“JavaConfig”)和JSR-330兼容类。
一个新的mvc配置名称空间:mvc:annotation-driven/激活了@Controller类的丰富处理,包括支持注释驱动的格式化和注释驱动的验证(如果存在JSR-303“Bean验证”提供程序,如Hibernate Validator 4.0)。我们的格式化包的新修订版本还支持流行的Joda时间库。
在运行时修改生命周期管理:一旦上下文配置完全完成,自动启动消息侦听器容器和调度程序将立即启动。在上下文关闭时,可以为生命周期组件的“分阶段”停止定义特定的关闭顺序。可配置的生命周期处理器委托提供相应的自定义挂钩。
最后,RC2在细节上有许多改进:例如,修改了URI编码,以便正确处理请求URL的任何部分中的特殊字符;改进了父子关系中的作用域处理,以便继承bean的作用域;支持JBoss 5.x上的加载时编织;等等。
Spring3.0GA即将推出…
P、 特别感谢SpringSource内外的“扩展”Spring开发团队中的所有人,他们使这个版本成为可能!你摇滚:-)
由DISPS提供的评论

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值