gpt4 book ai didi

spring - Java 8 Spring 兼容性

转载 作者:行者123 更新时间:2023-12-01 17:23:32 25 4
gpt4 key购买 nike

我目前正在将应用程序从 Java 7 迁移到 Java 8,并且当前正在运行 Spring 3.1.6 jar。 这与 Java 8 兼容吗?或者我需要升级 Spring jar 吗?

我知道 Spring 4x 版本天然支持 Java 8,但这对时间至关重要,我正在寻求尽可能少的 jar 更改。

最佳答案

基本上 Spring 3.x 版本最多仅支持 Java-7。如果您想迁移到 Java-8,您应该使用 Spring 4.x 版本。

However some spring release notes says that the Spring Framework 3.2.x will support deployment on JDK 8 runtimes for applications compiled against JDK 7 (with -target 1.7) or earlier. Note that it won’t support JDK 8’s bytecode format (-target 1.8, as needed for lambdas); please upgrade to Spring Framework 4.0 for that purpose.

关注this链接到源文章。

关于spring - Java 8 Spring 兼容性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61247261/

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