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.
spring-jclinstead 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:
PushBuilderargument in Spring MVC controller methods.
ResponseStatusExceptionas a programmatic alternative to
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.
orm.hibernate3/hibernate4dropped. 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.
Click below to sign up and get $200 of credit to try our products over 60 days!
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.