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
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in our Questions & Answers section, find tutorials and tools that will help you grow as a developer and scale your project or business, and subscribe to topics of interest.Sign up