我需要Spring 5 for Java 9吗? [英] Do I need Spring 5 for Java 9?

查看:105
本文介绍了我需要Spring 5 for Java 9吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spring 5被提升为支持JDK 9,同时Spring 4.3.13的文档声明它支持 Java 8(以及6和7)

Spring 5 is promoted as "with support for JDK 9", meanwhile the documentation for Spring 4.3.13 states that it supports Java 8 (as well as 6 and 7).

这是否意味着我需要升级到Spring 5才能

Does this mean that I need to upgrade to Spring 5 before I can


  • 在JRE 9中运行我的应用程序?

  • 使用JDK 9编译我的应用程序?

推荐答案

Spring



On 官方Spring博客,他们宣布Spring 4.2将支持Java 7和8(它在4.3中没有变化),他们也表示Spring 5将支持Java 9。

Spring

On the official Spring blog, they announced that Spring 4.2 would support Java 7 and 8 (it didn't change in 4.3), and they also said that Spring 5 would support Java 9.

暗示Spring 4不支持Java 9。

It is implied that Spring 4 won't support Java 9.

但这取决于你哟你正在做:在这个博客上,作者在Spring 4上测试Java9他说:

But it depends of what you're doing: on this blog, the writer is testing Java9 on Spring 4 and he said:


然而,在我们开始之前,一个快速的免责声明:我将演示迁移Spring 4.x / Spring Boot 1。 x应用程序到Java 9.据我所知,在Java 9中几乎没有正式的支持。到目前为止,我已经在运行应用程序时遇到了很多问题,但是,这些主要是概念证明,它们尚未经过彻底审查。

However, before we begin, a quick disclaimer: I will be demonstrating migrating Spring 4.x/Spring Boot 1.x applications to Java 9. As far as I have heard, there will be little to no formal support for either in Java 9. So far, I haven’t run into many issues once I have gotten the applications running, however, as these are primarily proofs of concept, they have not been thoroughly vetted.

因为不支持只意味着你不确定如果您使用的是Java9中的任何更改,您应该考虑迁移(除非您可以先测试)。

Because "doesn't support" only means you're not sure of the comportment, If you're using anything that changed in Java9, you should consider migrating (unless you can test it first).

Spring boot 1.x 不支持 Java9。如果您想使用它,必须迁移到Spring Boot 2.x.

Spring boot 1.x does not support Java9. If you want to use it, you have to migrate to Spring Boot 2.x.

这篇关于我需要Spring 5 for Java 9吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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