Features of Spring Framework 4: New features and enhancements in the Spring
In this article we are discussing about the new features and enhancements of
the Spring Framework 4. Spring Framework 4 is the major release of the framework
since 2009. New release supports Java 8 Lambda expression, new Date and Time API
and the parameter name discovery. Spring 4 is fully supporting Java 8 and the
Java EE 7 platform.
This version of Spring Framework (Spring 4) is the major release which is
fully supporting the Java 8. Spring 4 can still be used with the older version
of the Java but the minimum Java requirement is Java SE 6. In this version of
Spring framework many deprecated classes and methods has been removed.
The Spring framework 4 is also upgraded to provide the supporting for the
latest framework such as Hibernate ORM, Quartz framewokr, and EhCache caching
solution. This release of Spring framework is supporting the development of ever
growing enterprise applications.
Spring Framework 4 is the major release since 2009 as it is now re-invented
to support the development of Big Data, Cloud and REST applications to meet the
requirement of current applications. It is also supports Micro Service
Architecture which allows the developers to develop light weight services.
Spring 4 also supports all the latest JVM based innovations.
Here are the new Features of Spring 4
Java 8 Support
Spring 4 Framework is fully supporting the new features of Java 8. Spring 4
supports Lambda expression, new date & time API and Java 8 based parameter name
discovery. Now Java 6 is the minimum requirement of JDK to run the Spring 4
based applications. Ideally you should use the Java 8 for the development of
Spring 4 based application.
Secure REST stack
Now you can secure REST stack with the help of Spring 4 security stack. You
can also secure Web app and Spring MVC based applications. Spring 4 security
stack integrates seamlessly with REST, Spring Social, Web applications, MVC
Full support for HTML5/WebSocket
Spring 4 framework fully supports HTML5 and WebSockets, with the help you
Spring 4 framework you can develop applications using the features of WebSocket
specifications. You can develop applications which will include the following
Support for real-time full dupled communications over TCP
Web application can use the ports 80 and 443 using the URL
Schemes ws:// and wss:// respectively
There will be small overhead for text messages making it
more interactive for users
Ping/pong frames for staying alive, which is an important
feature for maintaining the session and user state
Annotation Driven programming model
Spring 4 framework supports latest annotation driven programming model which
helps the developers to develop application using Custom composable annotations,
annotation scoping /overriding model and the Spring expression language support.
Full support of Java EE 7 specification
Spring 4 framework fully supports Java EE 7 Specification and you can use the
following features main features in your application:
Bean Validation 1.1
JSR-236 Concurrency Utilities and many other features of JEE
Removal of Deprecated Methods and Packages
Many deprecated API's has been removed in the Spring 4 framework. So, you
should use the new API in your Spring 4 based applications. Here is the list of
removed packages in Spring 4: