Because the project is SSH, the JDK version used is less than 1.8
Solution 1
Project upgrade to jdk1.7
Solution 2
Still use 1.8 to create an org.springframework.core package in the project, and create jdkversion. Java under the package
There is jdkversion.java under spring-core.jar
public static final int JAVA_18 = 5;
if(javaVersion.indexOf("1.8.") != -1{
majorJavaVersion = 5;
}
Similar Posts:
- [Solved] Cannot make a static reference to the non-static field logMongoTemplate
- Cannot find the declaration of element ‘beans’
- [How to Solve] java.lang.IncompatibleClassChangeError
- [Solved] Spring Cloud Gateway Startup Error: Parameter 0 of method modifyRequestBodyGatewayFilterFactory in…
- [Solved] NoSuchMethodError: org.springframework.boot.web.servlet.error.ErrorController.getErrorPath
- [Solved] Gradle Error: Could not resolve all dependencies for configuration ‘:detachedConfiguration7
- [Solved] Logback configuration error: SLF4J: Class path contains multiple SLF4J bindings.
- Error:Error converting bytecode to dex [How to Solve]
- Springcloud: gateway module startup error
- [Solved] Eclipse Error: java.lang.ClassNotFoundException: ContextLoaderListener