gpt4 book ai didi

java - Spring是否支持OpenJDK 12

转载 作者:行者123 更新时间:2023-11-29 06:48:44 24 4
gpt4 key购买 nike

我们计划将我们的应用程序从 Oracle JDK 8 迁移到 OpenJDK 12。目前我们使用的是 Spring Boot 版本 1.4.5.RELEASE

我看过很多文章说从 Spring Boot 2.2.X 开始,我们将支持 OpenJDK 12。请提供您的意见。

最佳答案

根据Spring Framework Wiki (根据 2020 年 8 月更新)

JDK Version Range


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

We fully test and support Spring on Long-Term Support (LTS) releases of the JDK, i.e. currently JDK 8 and 11 (both with a lifetime until 2023) and expecting JDK 17 (to be released in late 2021). Additionally, there is support for intermediate releases such as JDK 9/10/12/13/14 and the upcoming JDK 15/16 on a best-effort basis, meaning that we accept bug reports and will try to address them as far as technically possible but won't provide any service level guarantees.

Please upgrade to Spring Framework 5.1+ (and the corresponding Spring Boot 2.1+) for JDK 11+ support, as the common Long-Term Support migration path from JDK 8. No earlier Spring versions are officially supported on JDK 11, in particular not with JDK 11 bytecode level. Note that third-party components might not fully support JDK 11 yet, so you are likely to be limited in your full-stack options.

以上维基页面定期更新,建议您自行查看。


如果你切换到 Spring 5.1.x,你在 Java 12 上就没问题。

至于 Spring Boot,2.1 适用于 Java 11。Spring Boot 2.2 最高支持 Java 13。

(您可以通过查看其引用文档的“入门”页面来查找给定 Spring Boot 版本支持的 Java 版本。)

关于java - Spring是否支持OpenJDK 12,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56785455/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com