Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Spring Spring3.2 New Features of Spring Framework 3.2

Related Tutorials


 
 

Share on Google+Share on Google+

New Features of Spring Framework 3.2

Advertisement
Spring Framework 3.2 released is with many new features and enhancements. Its final version of the of the Spring Framework 3.2. It recommended that the users of Spring framework 3.1 should now upgrade to version 3.2. Spring Framework 3.2 now supports new improved features of Java SE 7.

New Features of Spring Framework 3.2

Spring Framework 3.2 released is with many new features and enhancements. Its final version of the of the Spring Framework 3.2. It recommended that the users of Spring framework 3.1 should now upgrade to version 3.2. Spring Framework 3.2 now supports new improved features of Java SE 7.

New Features and Enhancements in Spring 3.2

Following are the new features and enhancement in Spring 3.2 :

  • Spring 3.2 have asynchronous request processing support based on Servlet 3.0 API

  • In Spring 3.2, a ContentNeogtiationStrategy is available for determining the requested media types of incoming request.

  • The component annotation @ControllerAdvice, detects implementation classes automatically by scanning classpath.

  • For getting matrix variables from the request URI, @MatrixVariable annotation is introduced in Spring 3.2.

  • The AbstractDispatcherServletInitializer class and its sub-class AbstractAnnotationConfigDispatcherServletInitializer is introduced to make code-based registration of a DispatcherServlet and filters less difficult. 

  • The ResponseEntityExceptionHandler class provides method @ExceptionHandler for handling standard Spring MVC exceptions, that returns a ResponseEntity which letting us writing and modifying the response with the help of HTTP message converters.

  • Generic type (For ex. List<Account>) of HTTP response , is now supported by RestTemplate and also in parameters @RequestBody.
  • Some configuration betterments and new classes are added in Spring 3.2 MVC to support Jackson JSON 2 library.

  • In addition to tiles 2.x, Spring 2.3 has now support for Tiles 3. Tiles 3 configuration is very similar to Tiles 2.x configuration.
    In spite of that, tiles dependencies are also modified.

  • Inside @RequestMapping method, an Errors argument is added with an @RequestBody or an @RequestPart argument to manage validation errors produced by @Valid annotation.

  • After Spring 3.2, you can now use HTTP request function PATCH in @RequestMapping functions. Inspite of that you can use PATCH function in RestTemplate with the help of Apache HttpComponents's HttpClient version 4.2 or later.

  • Now, omitting URL patterns is supported by the Mapped interceptors. These options exhibits by the MVC JavaConfig and the MVC namespace.

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: December 17, 2012

Related Tutorials

Discuss: New Features of Spring Framework 3.2  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com