1.使用命令mvn package,将工程打包成war包 2.把war包放置到tomcat的webapps目录下,运行tomcat 转载于:https://www.cnblogs.com/max-hou/p/10944177.html