No Spring WebApplicationInitializer types detected on classpath

前端 未结 13 1859
野的像风
野的像风 2020-11-29 08:03

My Eclipse project is suddenly no longer deploying properly. I can\'t trace it to any particular change I\'ve made to the environment.

I have tested with multiple s

13条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 09:06

    tomcat-maven-plugin in test

    Tomcat usually does not add classes in src/test/java to the classpath. They are missing if you run tomcat in scope test. To order tomcat to respect classes in test, use -Dmaven.tomcat.useTestClasspath=true or add

    
       true
    
    

    To your pom.xml.

提交回复
热议问题