Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimum Spring version compatible with Java 11

I need to upgrade an app to Java 11 very soon, I was wondering what's the minimum Spring version that is compatible with Java 11.

I'm currently using Java 8 and Spring 4.2.7.

like image 341
kms333 Avatar asked Jul 19 '18 16:07

kms333


People also ask

What version of Spring is compatible with Java 11?

As of Spring Framework 5.1, Spring requires JDK 8+ (Java SE 8+) and provides out-of-the-box support for JDK 11 LTS. Java SE 8 update 60 is suggested as the minimum patch release for Java 8, but it is generally recommended to use a recent patch release. Spring supports a wide range of application scenarios.

Does Spring 5 supports Java 11?

Spring Framework 5.0 had initial support for Java 9, and Spring Framework 5.1 requires JDK 8 and officially supports Java 11.

Does Spring Boot require Java 11?

Spring Boot 3.0 will require Java 17, but you don't need to wait until that release to upgrade to the latest LTS Java version. Any recent Spring Boot 2. x release will work really well with Java 17. You can also make use of Java 17 features (such as records) in your own codebases.

What is the minimum Java version need for Spring Boot?

System Requirements Spring Boot 2.7. 3 requires Java 8 and is compatible up to and including Java 18. Spring Framework 5.3. 22 or above is also required.


3 Answers

From their task tracker -- SPR-16391:Compatibility with JDK 11. The compatibility of JDK 10, 11 is planned along with 5.1 GA release.

JDK 11 is currently scheduled for September 2018. Not expecting any major changes beyond JDK 10 from our perspective, we should be able to fully support it in the 5.1 line already.

Ideally our framework build would be able to run on JDK 8, 9, 10 as well as 11, even if our own test efforts will focus on JDK 8 and 11 (as the official long-term support branches) at that point.

While the option of experimenting with your own code on module path is still feasible using spring framework 5.0, which provides out-of-the-box support for JDK 9 already.

Update: Spring Framework 5.1 goes GA on 21st September, 2018

like image 55
Naman Avatar answered Sep 18 '22 23:09

Naman


Spring Boot version 2.1.0 has been released with full Spring 5.1 and Java 11 support.

What’s new in 2.1

Third-party library upgrades.

We’ve upgraded to the latest stable releases of other third-party libraries wherever possible. Some notable dependency upgrades in this release include:

  • Hibernate 5.3
  • Micrometer 1.1
  • Spring Data Lovelace
  • Spring Framework 5.1
  • Tomcat 9
  • Undertow 2
like image 26
Mikhail Kholodkov Avatar answered Sep 22 '22 23:09

Mikhail Kholodkov


JDK Version Range

  • Spring Framework 5.3.x: JDK 8-19 (expected)
  • Spring Framework 5.2.x: JDK 8-15
  • Spring Framework 5.1.x: JDK 8-12
  • Spring Framework 5.0.x: JDK 8-10
  • Spring Framework 4.3.x: JDK 6-8

For more info please visit here source

like image 43
Arun Sai Avatar answered Sep 18 '22 23:09

Arun Sai