INFO: No Spring WebApplicationInitializer types detected on classpath

前端 未结 9 1775
借酒劲吻你
借酒劲吻你 2020-11-28 12:32

I have a spring project that runs fine on my tomcat7 server when I deploy from eclipse: Run As >> Run on server. In the eclipse tab \"Servers\" I see:

Server         


        
9条回答
  •  借酒劲吻你
    2020-11-28 12:56

    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: Preferences\Java\Compiler.

    Thanks everybody.

提交回复
热议问题