idea使用maven启动tomcat 1、设置tomcat,如图: 2、添加war包 3、修改pom.xml 删除可能的选项,如果有下面的代码,删除掉 4、选择使用的resources目录 5、启动即可