1、在pom.xml中添加tomcat7插件
<build>
<!-- Embedded Apache Tomcat required for testing war -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/</path>
</configuration>
</plugin>
</plugins>
</build>
2、配置maven build








![[Python进阶] Python处理txt文件:open](https://img-blog.csdnimg.cn/direct/f5bf88b882fd4e3f927ecb3859a397bd.png)










