Spring 5被宣传为“支持JDK 9”,同时Spring 4.3.13的文档声明它支持Java 8 (as well as 6 and 7).
这是否意味着我需要在可以之前升级到Spring 5
>在JRE 9中运行我的应用程序?
>使用JDK 9编译我的应用程序?
解决方法:
弹簧
在the official Spring blog,他们宣布Spring 4.2将支持Java 7和8(它在4.3中没有变化),他们还说Spring 5将支持Java 9.
暗示Spring 4不支持Java 9.
但这取决于你正在做什么:this blog,作者在春季4测试Java9,他说:
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中使用任何改变的东西,你应该考虑迁移(除非你可以先测试它).
春季启动
Spring boot 1.x不支持Java9.如果要使用它,则必须迁移到Spring Boot 2.x.
标签:java,spring,spring-boot,java-9
来源: https://codeday.me/bug/20191006/1860148.html