简体   繁体   English

Spring 是否支持 OpenJDK 12

[英]Does Spring support OpenJDK 12

We are planning to migrate our application from Oracle JDK 8 to OpenJDK 12. Currently we are using Spring Boot version 1.4.5.RELEASE .我们计划将我们的应用程序从 Oracle JDK 8 迁移到 OpenJDK 12。目前我们使用的是 Spring Boot 版本1.4.5.RELEASE

I have read many articles saying that from Spring Boot 2.2.X, we will have support for OpenJDK 12. Please provide your inputs.我读过很多文章,说从 Spring Boot 2.2.X 开始,我们将支持 OpenJDK 12。请提供您的意见。

According to the Spring Framework Wiki (as per the August 2020 update)根据Spring Framework Wiki (根据 2020 年 8 月更新)

JDK Version Range JDK 版本范围


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

We fully test and support Spring on Long-Term Support (LTS) releases of the JDK, ie currently JDK 8 and 11 (both with a lifetime until 2023) and expecting JDK 17 (to be released in late 2021).我们在 JDK 的长期支持 (LTS) 版本上全面测试和支持 Spring,即当前的 JDK 8 和 11(两者的生命周期都到 2023 年)并期待 JDK 17(将于 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.此外,我们会尽最大努力支持中间版本,例如 JDK 9/10/12/13/14 和即将推出的 JDK 15/16,这意味着我们会接受错误报告,并将尝试在技术上解决这些问题可能但不会提供任何服务级别保证。

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.请升级到 Spring Framework 5.1+(和相应的 Spring Boot 2.1+)以获得 JDK 11+ 支持,作为从 JDK 8 的通用长期支持迁移路径。 JDK 11 没有正式支持早期的 Spring 版本,特别是不支持JDK 11 字节码级别。 Note that third-party components might not fully support JDK 11 yet, so you are likely to be limited in your full-stack options.请注意,第三方组件可能尚未完全支持 JDK 11,因此您的全栈选项可能会受到限制。

The above Wiki page is updated regularly, and you are advised to check it yourself.以上维基页面会定期更新,建议您自行查看。


If you switched to Spring 5.1.x, you will be OK on Java 12.如果您切换到 Spring 5.1.x,则可以使用 Java 12。

As for Spring Boot, 2.1 is good for Java 11. Spring Boot 2.2 supports up to Java 13.至于 Spring Boot,2.1 适用于 Java 11。Spring Boot 2.2 最多支持 Java 13。

(You can look up the versions of Java supported for a given Spring Boot release by looking at the "Getting Started" page of its reference documentation.) (您可以通过查看其参考文档的“入门”页面来查找给定 Spring Boot 版本支持的 Java 版本。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM