问题:我的Eclipse环境用的JDK 8,项目是JDK 7,在jetty中启动项目时报错:INFO: No Spring WebApplicationInitializer types detected
解决:确定项目编译时的jdk版本,更改Eclipse编译用的jdk版本即可
I found the error: I have a library that it was built using jdk 1.6. The Spring main controller and components are in this library. And how I use jdk 1.7, It does not find the classes built in 1.6.
The solution was built all using “compiler compliance level: 1.7” and “Generated .class files compatibility: 1.6”, “Source compatibility: 1.6”.
I setup this option in Eclipse: PreferencesJavaCompiler.
近期评论