Spring has undergone two major amendments is the first in October 2006 the Spring2.0, and another in November 2007 the Spring2.5.
Introduction:
(1) Spring's support for Java SE
Spring Framework Java1.4.2 and continue to maintain the compatibility of future versions. However, some advanced features of Spring in the Java 1.4.2 can not use, Spring2.5 full support for Java 6, and support for Java 5 at Spring2.0 better.
(2) Spring's support for Java EE
Spring Framework Java EE1.3 continue to maintain compatibility and later, full support for Java EE 5.
(3) Spring on the server (application server and Web server) support
WebLogic: 8.1,9.0,9.2,10
WebSphere: 5.1,6.0,6.1
OC4J (Oracle): 10.1.3,11
JBoss: 3.2,4.0,4.2
Tomcat: 4.1,5.0,5.5,6.0
Jetty: 4.2,5.1,6.1
Resin: 2.1,3.0,3.1
GlassFish: v1, v2
Inversion control (IoC) containers:
(1) a new bean scope
Spring2.0 IoC container singleton and prototype only supports two different bean scope, and in Spring2.5 but also supports the request, session, global session three web environment at the bean scope, and provides the hooks , allowing users to create their own scope.
(2) XML configuration easier
Spring2.5 the DTD for Spring 2.0 has been updated, use: <! DOCTYPE beans PUBLIC "- / / SPRING / / DTD BEAN 2.0 / / EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
spring-beans-2.0.dtd package can be released under the dist / resources to find.
(3) Annotation (Notes) driver configuration
Spring2.5 the introduction of a complete set of Annotation such as: @ Resource, @ Autowired section oriented programming, etc. (AOP):
(1) a more simple definition of AOP XML configuration support from the JAVA object to the development of the cross-section
(2) of the @ AspectJ support by adding a bean (...) pointcut support elements, as defined in the spring of the specified bean name matching the name
(3) of the AspectJ load-time weaving between the support layer:
(1) XML declaration transaction more easy to configure previous versions of Service will continue to support the configuration, Spring2.5 weaving support at the time of loading and annotation-driven transaction management, it is through the context: load-time-weaver and tx: annotation-driven mode = "aspectj" joint use of the.
(2) Websphere transaction management to support the automatic detection of the integrity of the underlying platform JTA services, you can use Spring 2.5 new tx: jta-transaction-manager configuration element. It will automatically detect BEA WebLogic and IBM WebSphere, the right register PlatformTransactionManager.
(3) JPA
Spring 2.5 on the support of OpenJPA upgraded to OpenJPA 1.0, support for advanced features such savepoint
(4) asynchronous JMS
Spring 2.5 in Medium, JCA-style asynchronous message listener GenericMessageEndpointManager instrument set also supported. This is the standard JMS listener to add the instrument to allow for these JORAM message ActionMQ and broker for more in-depth integration. Spring 2.5 also introduces an XML namespace to simplify JMS configuration, can be substantial for simple configuration listener. This namespace supports standard JMS listener and the JCA setup style, at only a very small configuration changes.
(5) JDBC
Introduced a new category, Spring 2.5 has significantly expanded the functions of SimpleJdbcTemplate introduced and SimpleJdbcCall object SimpleJdbcInsert operation.
Transplanted to Spring2.5:
Spring2.5 from Spring2.0.X upgrade to the jar just to Spring2.5 copied to your project directory of the corresponding configuration.
webmvc-portlet.jar.
Struts1.x the support of a separate spring-webmvc-struts.jar.
Spring2.0 the 'spring-jmx.jar' and 'spring-remoting.jar' has been moved to Spring 2.5 the 'spring-context.jar'.
Spring 2.0 the 'spring-support.jar' has been renamed the 'spring-context-support.jar'.
Spring 2.0 the 'spring-jdo.jar', 'spring-jpa.jar', 'spring-hibernate3.jar', 'spring-toplink.jar' and 'spring-ibatis.jar' was incorporated into the large size of the Spring 2.5 'spring-orm.jar' Medium.
Spring 2.5 the 'spring-test.jar' replaced the 'spring-mock.jar'.
Spring 2.5 the 'spring-tx.jar' replaced the 'spring-dao.jar' and 'spring-jca.jar' document.
Spring in the main code to support Apache OJB was totally removed.
iBATIS SQL Maps 1.3 support has been completely removed.
In Spring 2.5, Hibernate 2.1 to Hibernate 3.0 support and has been removed.
Spring 2.5 in support of JDO 1.0 was removed.







