我目前正在将应用程序从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.