While we believe that this content benefits our community, we have not yet thoroughly reviewed it. If you have any suggestions for improvements, please let us know by clicking the “report an issue“ button at the bottom of the tutorial.
Spring 5 was released in late 2017. Spring 5 brings a massive update to the Spring framework. Spring 4 was released in 2013, so everybody was expecting a major overhaul of the framework. I am very happy to see the new features in Spring framework.
Spring 5 features can be broadly divided into following categories:
I really like that spring 5 is trying to catch up to the latest version of different technologies.
@Nullable
annotation.spring-jcl
instead of standard Commons Logging.Spring MVC module has got the major overhaul in terms of using the latest Java EE technologies. Some of the major enhancements are:
Filter
implementations.PushBuilder
argument in Spring MVC controller methods.ResponseStatusException
as a programmatic alternative to @ResponseStatus
.Spring WebFlux is the new module, it’s an alternative to spring-webmvc
module and built on reactive framework. This module is used to create fully asynchronous and non-blocking application built on event-loop execution model.
Spring 5 also supports Kotlin programming now. This is a huge step towards supporting functional programming, just as Java is also moving towards functional programming.
beans.factory.access
, jdbc.support.nativejdbc
, mock.staticmock
from spring-aspects
module.web.view.tiles2
and orm.hibernate3/hibernate4
dropped. This means if you are planning to use Spring 5, you will also have to use Hibernate 5.That’s all for a quick overview of Spring 5 features. Reference: Spring GitHub Doc
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
I’m disappointed that support for JDO has been dropped. It always seemed to me to be the best persistence technology, and the companies I work for have used JDO widely in production, and are currently shipping and planning new products with use JDO persistence.
- Steve Zara
Good to know and thanks for the info.
- Chiranjeevi