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.
Java and Python Developer for 20+ years, Open Source Enthusiast, Founder of https://www.askpython.com/, https://www.linuxfordevices.com/, and JournalDev.com (acquired by DigitalOcean). Passionate about writing technical articles and sharing knowledge with others. Love Java, Python, Unix and related technologies. Follow my X @PankajWebDev
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.