Search code examples
javaspringspring-bootdependenciesversion

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?


Solution

  • 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