Site icon SpringHow

Spring Boot Latest Version

As of May 21st of 2021, The latest stable spring boot version is 2.5.0. Spring Boot 2.5.0 offers a variety of new fixes and dependency updates. Let’s check them out in detail.

Information from start.spring.io

Java and Spring Boot version Compatibility

Spring Boot 2.5.0 requires at least Java 8. It is also tested with java 16.

Important dependency version updates

DependencyVersion
Spring Framework5.3.7
Embedded Tomcat Server9.0.46
Hibernate5.4.31.Final
HikariCP – Connection Pool4.0.3

What’s new in Spring Boot 2.5

Lets go through some noteworthy changes in Spring Boot version 2.5.0.

  1. Environment variable prefixes. By setting application.setEnvironmentPrefix("myapp"), you can use MYAPP_SERVER_PORT instead of SERVER_PORT.
  2. All embedded servers now support HTTP2 out of the box. To enable this, set server.http2.enabled=true
  3. Jetty 10 is available but can only work with Java 9. So the default version is still Jetty 9.

Things to consider while upgrading from version 2.4

Here are the things to consider while moving to spring boot 2.5.0.

Exit mobile version