与 Java 11 兼容的最低 Spring 版本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51427248/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 00:08:13  来源:igfitidea点击:

Minimum Spring version compatible with Java 11

javaspringjava-8java-11

提问by kms333

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.

我需要很快将应用程序升级到 Java 11,我想知道与 Java 11 兼容的最低 Spring 版本是多少。

I'm currently using Java 8 and Spring 4.2.7.

我目前使用的是 Java 8 和 Spring 4.2.7。

采纳答案by Naman

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

来自他们的任务跟踪器 - SPR-16391:Compatibility with JDK 11。JDK 10、11 的兼容性计划与5.1 GA版本一起发布。

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.

JDK 11 目前计划于 2018 年 9 月发布。从我们的角度来看,预计 JDK 10 之后不会有任何重大变化,我们应该已经能够在 5.1 系列中完全支持它。

理想情况下,我们的框架构建将能够在 JDK 8、9、10 和 11 上运行,即使我们自己的测试工作在那时将专注于 JDK 8 和 11(作为官方的长期支持分支)。

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.

虽然使用 spring 框架 5.0 在模块路径上试验您自己的代码仍然是可行的,它已经为 JDK 9 提供了开箱即用的支持

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

更新:Spring Framework 5.1 于 2018 年 9 月 21 日正式发布

回答by Mikhail Kholodkov

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

Spring Boot 2.1.0 版已经发布,完全支持 Spring 5.1 和 Java 11。

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

2.1 中的新功能

第三方库升级

我们已尽可能升级到其他第三方库的最新稳定版本。此版本中一些值得注意的依赖项升级包括:

  • 休眠 5.3
  • 千分尺 1.1
  • Spring Data Lovelace
  • 弹簧框架 5.1
  • 雄猫9
  • 暗流2