What is new in JAVA Spring 5 Framework?

The wait is over now! Spring 5 has been released after a couple of years with improvements and new structures.

Below are the key improvements:

Baseline upgrades

Your system must have JDK 8 and Java EE 7 to build and run Spring 5 application because previous versions are not supported anymore. Specifically, Java EE 7 includes below:

  • Bean Validation 1.1
  • JMS 2.0
  • JAX-RS 2.0
  • JPA 2.1
  • Servlet 3.1

Minimum supported versions of various servers are as below:

  • Undertow 1.4+
  • Netty 4.1+
  • Tomcat 8.5+
  • Jetty 9.4+
  • WildFly 10+

Reactive programming support/model

Reactive programming model is the most exhilarating features of Spring 5. Spring 5 is totally reactive and non-blocking; this stack is perfect for event style-looping that can scale with a limited number of threads.

Reactive HTTP and WebSocket clients are supported by the spring-webflux module. Spring 5.0 also provides support for reactive web apps running on servers, i.e. HTML, REST and WebSocket-Style interaction.

In spring-webflux there are two different programming models on the server-side:

  • An annotation-based model: Build on reactive foundations and it is the latest alternative to Spring WebMVC.
  • The Functional Web Framework: It is the alternative to the @Controller annotation-based programming model.

Testing improvements

JUnit 5 Jupiter is supported by Spring 5 so writing test and extensions can be carried out effortlessly.

Library Support

Below upgraded library versions are supported by Spring Framework 5.0:

  • Hibernate 5.0+
  • Netty 4.1+
  • JDBC 4.0+
  • OkHttp 3.x+
  • EhCache 2.10+ / 3.0 GA
  • Jackson 2.6+
  • XmlUnit 2.x+

Discontinued Supports

Below are the discontinued supports by Spring 5:

  • Guava
  • JasperReports
  • JDO
  • Portlet
  • Velocity
  • XMLBeans

All in all, Spring is Java’s best framework so far and which is being used by many web developers worldwide. Apart from Spring 5 we also have expertise in following frameworks, i.e. JSF, Struts, Hibernate, GBT, and Vaadin. Get in touch if you want to hire Java Developers for your current and upcoming projects. We are leading Java development service provider company in India.