1、点击添加run  config ,选择添加tomcat  server

idea使用tomcat运行maven打包的war

 

2、配置 tomcat  路径  及启动地址

idea使用tomcat运行maven打包的war

 

 

3、配置maven打包

 

idea使用tomcat运行maven打包的war

 

idea使用tomcat运行maven打包的war

idea使用tomcat运行maven打包的war

 

4、 配置tomcat 运行war文件

idea使用tomcat运行maven打包的war

5、启动tomcat时可能tomcat失败(由于tomcat远程结束端口,默认配置为-1,无法使用,修改为1-65535之间不冲突使用的端口

 idea使用tomcat运行maven打包的war

 

 

 

 

 

 

 

 

 

 

 

 

 

 

相关文章:

  • 2022-02-07
  • 2021-10-10
  • 2022-02-17
  • 2021-07-07
  • 2021-04-15
  • 2022-12-23
  • 2021-08-22
猜你喜欢
  • 2021-12-16
  • 2022-12-23
  • 2021-08-04
  • 2021-10-13
  • 2021-12-14
  • 2022-12-23
相关资源
相似解决方案