Spring Framework v5.0 M1发布

jopen 8年前
   <p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/419bbe461560617a64db82ed980d7f58.png" /></p>    <p>Spring 是一个开源框架,是为了解决企业应用程序开发复杂性而创建的。框架的主要优势之一就是其分层架构,分层架构允许您选择使用哪一个组件,同时为 J2EE 应用程序开发提供集成的框架。Spring 框架是一个分层架构,由 7 个定义良好的模块组成。Spring 模块构建在核心容器之上,核心容器定义了创建、配置和管理 bean 的方式组成,Spring 框架的每个模块(或组件)都可以单独存在,或者与其他一个或多个模块联合实现。</p>    <p style="text-align: center;"><strong>Spring 框架的 7 个模块<img src="file:///C:/Users/wqm/AppData/Local/Temp/enhtmlclip/Image(2).jpg" /></strong></p>    <p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/df9ab5ea5f2846d34a6ce24d4c0b65f8.jpg" /></p>    <p> </p>    <p>每个模块的功能如下:</p>    <ul>     <li>核心容器:核心容器提供 Spring 框架的基本功能。核心容器的主要组件是 BeanFactory,它是工厂模式的实现。BeanFactory 使用控制反转 (IOC) 模式将应用程序的配置和依赖性规范与实际的应用程序代码分开。</li>     <li>Spring 上下文:Spring 上下文是一个配置文件,向 Spring 框架提供上下文信息。Spring 上下文包括企业服务,例如 JNDI、EJB、电子邮件、国际化、校验和调度功能。</li>     <li>Spring AOP:通过配置管理特性,Spring AOP 模块直接将面向方面的编程功能集成到了 Spring 框架中。所以,可以很容易地使 Spring 框架管理的任何对象支持 AOP。Spring AOP 模块为基于 Spring 的应用程序中的对象提供了事务管理服务。通过使用 Spring AOP,不用依赖 EJB 组件,就可以将声明性事务管理集成到应用程序中。</li>     <li>Spring DAO:JDBC DAO 抽象层提供了有意义的异常层次结构,可用该结构来管理异常处理和不同数据库供应商抛出的错误消息。异常层次结构简化了错误处理,并且极大地降低了需要编写的异常代码数量(例如打开和关闭连接)。Spring DAO 的面向 JDBC 的异常遵从通用的 DAO 异常层次结构。</li>     <li>Spring ORM:Spring 框架插入了若干个 ORM 框架,从而提供了 ORM 的对象关系工具,其中包括 JDO、Hibernate 和 iBatis SQL Map。所有这些都遵从 Spring 的通用事务和 DAO 异常层次结构。</li>     <li>Spring Web 模块:Web 上下文模块建立在应用程序上下文模块之上,为基于 Web 的应用程序提供了上下文。所以,Spring 框架支持与 Jakarta Struts 的集成。Web 模块还简化了处理多部分请求以及将请求参数绑定到域对象的工作。</li>     <li>Spring MVC 框架:MVC 框架是一个全功能的构建 Web 应用程序的 MVC 实现。通过策略接口,MVC 框架变成为高度可配置的,MVC 容纳了大量视图技术,其中包括 JSP、Velocity、Tiles、iText 和 POI。</li>    </ul>    <h2>更新日志</h2>    <ul>     <li>Task SPR-14431 Introduce log4j 2 for Spring's test suite</li>     <li>Task SPR-13793 Upgrade to JMS 2.0+</li>     <li>Task SPR-11569 Switch source encoding to UTF-8 and enforce it in the build</li>     <li>Task SPR-14449 Move "What's New" reference manual chapter to the wiki</li>     <li>Task SPR-14122 Initial compatibility with Undertow 2.0</li>     <li>Task SPR-14497 Add documentation on web reactive support</li>     <li>Task SPR-13481 Upgrade to JPA 2.1+ and Bean Validation 1.1+</li>     <li>Task SPR-13344 Compatibility with merged JDK 9 mainline</li>     <li>Task SPR-13826 Raise JDBC driver feature baseline to JDBC 4.0+</li>     <li>Task SPR-13794 Require EhCache 2.10+ / 3.0 GA</li>     <li>Task SPR-14344 Deprecate OkHttp 2.x support</li>     <li>Task SPR-14362 Upgrade build to Gradle 2.14.1</li>     <li>Task SPR-13499 Streamline XML namespace support towards unversioned schemas</li>     <li>Task SPR-13495 Require Undertow 1.3.5+, Tyrus 1.11+, Jetty 9.3+, Tomcat 8.5+</li>     <li>Task SPR-13188 Upgrade framework codebase to JDK 8+</li>     <li>Task SPR-10423 Upgrade JiBX (and BCEL) towards support of 1.8 bytecode level</li>     <li>Sub-task SPR-14158 Reactive encoding and decoding of JSON with Jackson</li>     <li>Sub-task SPR-14157 Reactive encoding and decoding of XML</li>     <li>Pruning SPR-14129 Drop Portlet MVC support</li>     <li>Pruning SPR-14130 Drop JDO support</li>     <li>Pruning SPR-13797 Drop Guava caching - superseded by Caffeine</li>     <li>Pruning SPR-13294 Drop JasperReports support</li>     <li>Pruning SPR-14429 Drop deprecated dependencies on Log4j, JRuby, JExcel, Burlap, Commons Pool/DBCP</li>     <li>Pruning SPR-13515 Remove AbstractJpaTests and revise spring-orm test suite accordingly</li>     <li>Pruning SPR-14426 Drop native OpenJPA support</li>     <li>Pruning SPR-13229 Remove Tiles 2 support</li>     <li>Pruning SPR-13796 Remove XMLBeans support</li>     <li>Pruning SPR-13827 Remove native support for Hibernate 3.6 and 4.x</li>     <li>Pruning SPR-13795 Remove Velocity support</li>     <li>Pruning SPR-13189 Drop Servlet 2.5 runtime compatibility</li>     <li>New Feature SPR-14153 Reactive server web support</li>     <li>New Feature SPR-14161 Reactive web module</li>     <li>New Feature SPR-14154 Reactive Web client</li>     <li>New Feature SPR-14159 Composition adapters for Reactive Streams</li>     <li>New Feature SPR-13575 Introduce support for JUnit 5 in the TestContext framework</li>     <li>New Feature SPR-14160 HTTP cookie abstraction</li>     <li>New Feature SPR-14156 Reactive serialization & deserialization</li>     <li>New Feature SPR-14155 ByteBuffer abstraction</li>     <li>New Feature SPR-4365 Introduce before/after test execution callbacks in the TestContext framework</li>     <li>New Feature SPR-14432 Core Spring interfaces declared with Java 8 default methods and @FunctionalInterface markers</li>     <li>New Feature SPR-14152 Reactive client and server HTTP adapters</li>     <li>New Feature SPR-13589 ProtobufHttpMessageConverter support for protobuf 3.0.0-beta4</li>     <li>Improvement SPR-14486 Avoid deprecated Class.newInstance in favor of constructor-based instantiation</li>     <li>Improvement SPR-14485 Drop mock.staticmock package from spring-aspects</li>     <li>Improvement SPR-14484 Resource.isFile() and JAF MediaTypeFactory</li>     <li>Improvement SPR-14055 Introduce support for creating a MethodParameter from a Java 8 Parameter</li>     <li>Improvement SPR-14450 Introduce Supplier<String> message support in org.springframework.util.Assert</li>     <li>Improvement SPR-14043 XMLUnit 2.x support</li>     <li>Improvement SPR-14492 Revise encoding steps towards use of JDK Charset and StandardCharsets</li>     <li>Improvement SPR-14459 Support suppressed exceptions in the TestContext framework </li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4958992617691240580" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4958992617805245361" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>    <h2> </h2>