Java 8 Spring compatibility

前端 未结 4 992
挽巷
挽巷 2020-11-29 11:21

I am currently migrating my application from Java 7 to Java 8 and currently I am running the Spring 3.1.6 jar. Would this be compatible with Java 8 or I need to upgr

4条回答
  •  误落风尘
    2020-11-29 11:42

    If some libraries (or the JRE itself) are JDK 8 and the component-scan feature of spring is enabled (and scans these libs/jdk classes), then the minimal spring version is 3.2.10-RELEASE.

    The reason is the upgrade of ASM (the library that spring uses to scan compiled classes and detect annotations, implemented interfaces, etc.) in spring.

    See SPR-11979 and SPR-11656 for details.

提交回复
热议问题