INFO: No Spring WebApplicationInitializer types detected on classpath

前端 未结 9 1790
借酒劲吻你
借酒劲吻你 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 13:11

    I had similar problem with Tomcat 8 embedded in java7 application.

    When I launched Tomcat in my application, it worked. But when I launched it through Maven for integration test purpose, I got this error : "No Spring WebApplicationInitializer types detected on classpath".

    I fixed it by upgrading org.apache.tomcat.embed:tomcat-embed-* dependencies from version 8.0.29 to 8.0.47.

提交回复
热议问题