第一步:将项目打成war包
’打包命令(调过maven测试)
打开发环境包:clean compile package -Pdev -Dmaven.test.skip=true
打测试环境包:clean compile package -Ptest -Dmaven.test.skip=true
打生产环境包:clean compile package -Pproduct -Dmaven.test.skip=true
第二步:将war包上传到tomcat的webapps目录下
第三步:启动tomcat,访问项目地址
原文:https://www.cnblogs.com/yuanziren/p/13285906.html