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-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:
PushBuilder argument in Spring MVC controller methods.
ResponseStatusException as 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/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.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.