IntelliJ IDEA 部署web/maven项目到tomcat

  1,先把项目导入进来

 

2,打开项目进入主页面点击Edit Configurations 

 

3,进入编辑页面后按顺序添加服务

 

4,设置server table页

 

5,设置Deployment table页

添加exploded结尾的war包

这里路径我设为跟服务名称一致后结合server中的访问路径,最终为:http://localhost:8080/smart-order-webapp/xxxxx

 

6,设置完这两个table页就可以启动项目了

可以选择run/debug方式启动

 

7,成功访问本地服务

 

8,感谢大家的批阅