Spring Framework 3.1 RC1 发布

fmms 12年前
     <p>Spring 框架发布了 3.1 的首个 RC 版本,该版本已经完成了计划中的 3.1 正式版的所有特性:</p>    <ul>     <li>The <strong>environment abstraction</strong> and the <strong>environment profile mechanism</strong>.</li>     <li>Comprehensive <strong>Java-based application configuration</strong> based on <strong>@Enable* annotations</strong> on @Configuration classes.</li>     <li>An overhaul of the TestContext framework with <strong>first-class support for @Configuration classes</strong> and for environment profiles.</li>     <li>Our new <strong>"c:" namespace</strong> for conveniently specifying <strong>constructor arguments by name</strong> in a concise inline style.</li>     <li>The <strong>cache abstraction</strong> with out <strong>declarative caching</strong> solution (@Cacheable etc) on top.</li>     <li>The <strong>Servlet 3.0 based WebApplicationInitializer</strong> mechanism for bootstrapping a Spring web application <strong>without web.xml!</strong></li>     <li>Revised MVC processing with <strong>flash attribute support</strong>, a new <strong>@RequestPart</strong> annotation, and <strong>REST support refinements</strong>.</li>     <li><strong>Refined JPA support</strong>: package scanning <strong>without persistence.xml</strong>; consistent configuration based on persistence unit names.</li>     <li>Support for <strong>Hibernate 4.0</strong> (CR4 at this time) as well as for <strong>Quartz 2.0</strong>, while preserving compatibility with older versions.</li>     <li>Last but not least: a <strong>Java 7</strong> theme, with <strong>JDBC 4.1</strong> getting autodetected and with basic support for <strong>ForkJoinPool setup</strong>.</li>    </ul>    <p>正式版将于 11 月底发布,期间还会发布一个 RC2 版本。<br /> </p>    <div id="p_fullcontent" class="detail">     <p><a href="http://www.open-open.com/open2216.htm" target="_blank"><strong>Spring Framework</strong></a> 是一个开源的Java/Java EE全功能栈(full-stack)的应用程序框架,以Apache许可证形式发布,也有.NET平台上的移植版本。该框架基于 Expert One-on-One Java EE Design and Development(ISBN 0-7645-4385-7)一书中的代码,最初由 Rod Johnson 和 Juergen Hoeller等开发。Spring Framework 提供了一个简易的开发方式,这种开发方式,将避免那些可能致使底层代码变得繁杂混乱的大量的属性文件和帮助类。</p>     <p>Spring 中包含的关键特性:</p>     <ul>      <li>强大的基于 JavaBeans 的采用控制翻转(Inversion of Control,IoC)原则的配置管理,使得应用程序的组建更加快捷简易。 </li>      <li>一个可用于从 applet 到 Java EE 等不同运行环境的核心 Bean 工厂。 </li>      <li>数据库事务的一般化抽象层,允许宣告式(Declarative)事务管理器,简化事务的划分使之与底层无关。 </li>      <li>内建的针对 JTA 和 单个 JDBC 数据源的一般化策略,使 Spring 的事务支持不要求 Java EE 环境,这与一般的 JTA 或者 EJB CMT 相反。 </li>      <li>JDBC 抽象层提供了有针对性的异常等级(不再从SQL异常中提取原始代码), 简化了错误处理, 大大减少了程序员的编码量. 再次利用JDBC时,你无需再写出另一个 '终止' (finally) 模块. 并且面向JDBC的异常与Spring 通用数据访问对象 (Data Access Object) 异常等级相一致. </li>      <li>以资源容器,<span class="new">DAO</span> 实现和事务策略等形式与 Hibernate,JDO 和 iBATIS SQL Maps 集成。利用众多的翻转控制方便特性来全面支持, 解决了许多典型的Hibernate集成问题. 所有这些全部遵从Spring通用事务处理和通用数据访问对象异常等级规范. </li>      <li>灵活的基于核心 Spring 功能的 MVC 网页应用程序框架。开发者通过策略接口将拥有对该框架的高度控制,因而该框架将适应于多种呈现(View)技术,例如 JSP,FreeMarker,Velocity,Tiles,iText 以及 POI。值得注意的是,Spring 中间层可以轻易地结合于任何基于 MVC 框架的网页层,例如 Struts,WebWork,或 Tapestry。 </li>      <li>提供诸如事务管理等服务的<span class="mw-redirect">面向方面编程</span>框架。 </li>     </ul>     <p>在设计应用程序Model时,MVC <span class="new">模式</span>(例如Struts)通常难于给出一个简洁明了的框架结构。Spring却具有能够让这部分工作变得简单的能力。程序开发员们可以使用Spring的 JDBC 抽象层重新设计那些复杂的框架结构。</p>    </div>