我們在maven中配置了tomcat插件,然後用maven的方式啓動時,出現
可能是少了打包方式的原因:所以我們忽略打包或者添加打包方式
方法一: 需要在pom中的 tomcat插件中配置:
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<port>9090</port>
<path>/</path>
<server>tomcat7</server>
<ignorePackaging>true</ignorePackaging>
</configuration>
</plugin>
方法二:添加打包方式