Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What minimal Spring Boot 2.x version can run for sure on Java 17?

Can Spring Boot 3.0 requires at least Java 17.

What minimal Spring 2.x version can run for sure on Java 17?

Java 17 was released 14 Sep 2021 https://endoflife.date/java
so I would expect Spring Boot 2.6 (released 19 Nov 2021) https://endoflife.date/spring-boot
to be for sure tested against JRE 17.

Where is it possible to see min and max supported Java (JRE) version for every Spring Boot version?

like image 885
Paul Verest Avatar asked Jan 24 '26 19:01

Paul Verest


2 Answers

Spring Boot 2.5 is minimal version that supports JRE 17 according to documnetation.

(2.4 was intially up to JRE 16) UPDATE as @spamove commented,

2.4.2+ runs with JRE 17 without any real apparent issues

So if you are to upgrade you old project to run on JRE 17, be sure to upgrade to at least 2.5 version.
( But I would recommend the last 2.x which is 2.7, that will be supported even for longer time than 3.0 )

Also see Spring framework Java version requirement
https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions

enter image description here

like image 184
Paul Verest Avatar answered Jan 26 '26 10:01

Paul Verest


Any version of Spring docs has a dedicated section about this: https://docs.spring.io/spring-boot/docs/2.7.x/reference/html/getting-started.html#getting-started.system-requirements

like image 23
Boris Avatar answered Jan 26 '26 09:01

Boris



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!