Spring 2.0 features in the cold winter

Source: Internet
Author: User
[Javadocs special draft]The Spring framework development team has officially released the final version of spring 2.0. The release of spring 2.0 is based on two themes: simplicity and powerful functionality. The Spring framework has always been passed on to the idea that it provides a simple and high-yield model that allows it to handle the most complex applications as needed. In version 2.0, both of these aspects have been greatly improved, and many tasks have become simple, while the framework has become more applicable and some major new features have been added.

Spring2.0 backward compatibility

Spring 2.0 is almost completely backward compatible. Most users can directly upgrade to spring 2.0. They only need to replace the corresponding files in the existing version with the 1.2.8 Jae file contained in spring 2.0. The RC version has been released for nine months and has been fully tested and community feedback from 9 milestones to ensure backward compatibility and high quality standards of the Spring framework. "Spring 2.0 introduces a lot of exquisite and scalable features through a natural and seamless style, retaining all core APIs and configuration tools, "Juergen hoeller, the development leader of Spring framework and vice president and famous engineer of interface21, said," The new schema-based xml configuration model can help you implement more convenient and powerful configuration functions, it has no significant impact on Spring core content."

Rod Johnson, founder of springwork and CEO of interface21, said, "We believe that spring 2.0 is a significant improvement for Spring framework users and Enterprise Java, I am very excited about the new features that many of them are eager to apply to the product. The Spring framework advocates the concept of developing complex applications from a simple Java object (pojos) and continues to use pojo development as a benchmark. In fact, the full backward compatibility of spring 2.0 ensures the powerful features based on the pojo model, as well as the quality and flexibility of the Spring framework system. In addition, we can provide a smooth upgrade path for users who already use spring ".

New Features of spring 2.0

1. added many functions in the core control flip container (IOC), including customizing the scope of spring beans (according to the uncertain range of HTTP session and request) to further improve scalability, compatible with third-party frameworks or products built on the Spring framework, such as pitchfork projects (http: // www.interface21.com/pitchfork) applied to the next-generation WebLogic Server ).

2. The scalable xml configuration function allows you to create namespaces by introducing XML schema to define specific elements as program blocks to enhance reusability. This feature allows developers to use custom labels in spring itself, which makes daily work very simple and provides great convenience for third-party products, making it use spring internally, such as mule, is an important improvement for large enterprises that want to use expansion across large projects.
3. Spring 2.0 has also added support for Aspect-oriented programming (AOP). Spring 2.0 has improved the Spring AOP framework and made full use of the powerful aspectj pointcut Representation Language, it provides a complex way to determine the operations to perform. This aspectj programming model brings many advantages. In addition to the listener-based programming model, there are also type-safe matching, which can avoid potential method parameters and return type errors.

4. Improved functions for JMS messages. Before Spring 2.0, spring's JMS function was limited to message generation. This function (encapsulated in the jmstemplate class) is good, but it does not describe the complete JMS stack, such as Asynchronous generation and consumption of messages. The missing part of the JMS Stack has been added in spring 2.0 and provides complete support for asynchronous consumption of messages.

5. If you are lucky to use Java 5 (TIGER) for project development, you will find that spring 2.0 has powerful support for tiger.

6. Spring 2.0 now supports beans written in non-Java languages. The dynamic languages currently supported include jruby, groovy, and beanshell.

7. In spring 2.0, web layer support has been fully improved and expanded. Spring 2.0 has a rich JSP tag library, making it easier to compile JSP pages when using spring MVC. The spring team is confident that it will satisfy all developers who vote on Jira.

Ui taglib not provided before spring 2.0 is also supported in the new version, and the configuration file is simplified as necessary. Although spring MVC is far less creative than webwork in terms of framework design, it is also a step-by-step improvement, coupled with the support of various peripheral frameworks such as spring webflow, it is foreseeable that spring MVC will grow into an enemy of webwork.

8. Spring not only supports traditional (servlet-based) web development, but also supports JSR-168 Portlet development.

9. Spring 2.0 provides the JPA abstraction layer, which is similar to the JDBC abstraction layer of spring in terms of its role and common usage mode.

Spring provides comprehensive support for these functions, which reflects that spring is a framework with ambitious objectives, because these functions are required by J2EE specifications. Once spring2.0 provides comprehensive support for these features, it is easy for traditional Java Enterprise applications to be completely migrated to the Spring framework. In the long run, spring may become a fact platform and fact standard for Java Enterprise Development.

1

Note: The above content comes from the Internet and I am not liable for any joint liability.
Article transferred from: http://www.java-docs.com/html/274/6/6702/2.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.