Spring 是否支持 OpenJDK 12 [英] Does Spring support OpenJDK 12

查看:35
本文介绍了Spring 是否支持 OpenJDK 12的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

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

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 Framework Wiki(根据 2020 年 8 月更新)

According to the Spring Framework Wiki (as per the August 2020 update)

JDK 版本范围

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

我们在 JDK 的长期支持 (LTS) 版本上全面测试和支持 Spring,即当前的 JDK 8 和 11(两者的生命周期都到 2023 年)并期待 JDK 17(将于 2021 年底发布).此外,我们会尽最大努力支持中间版本,例如 JDK 9/10/12/13/14 和即将推出的 JDK 15/16,这意味着我们会接受错误报告,并将尝试在技术上解决这些问题可能但不会提供任何服务水平保证.

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.

请升级到 Spring Framework 5.1+(和相应的 Spring Boot 2.1+)以获得 JDK 11+ 支持,作为从 JDK 8 迁移的常见长期支持路径. JDK 上没有正式支持早期的 Spring 版本11,特别是不具有 JDK 11 字节码级别.请注意,第三方组件可能尚未完全支持 JDK 11,因此您的全栈选项可能会受到限制.

以上维基页面会定期更新,建议您自行查阅.

如果您切换到 Spring 5.1.x,则可以使用 Java 12.

If you switched to Spring 5.1.x, you will be OK on Java 12.

至于 Spring Boot,2.1 适用于 Java 11.Spring Boot 2.2 最多支持 Java 13.

As for Spring Boot, 2.1 is good for Java 11. Spring Boot 2.2 supports up to Java 13.

(您可以通过查看其参考文档的入门"页面来查找给定 Spring Boot 版本支持的 Java 版本.)

(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 是否支持 OpenJDK 12的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆