工具/原料

eclipsetomcat 

方法/步骤

打开eclipse在左侧右击项目名选择"Export"

使用eclipse制作war包方法 web项目打包到tomcat

在导出画面点击 "Web"->"WAR file"点击"Next"

使用eclipse制作war包方法 web项目打包到tomcat

 

点击"Browse…"选择文件的导出位置,Target runtime 运行环境选择 tomcat的版本点击 Finsh

使用eclipse制作war包方法 web项目打包到tomcat

到此war包制作完成,生成的目录结构如下

使用eclipse制作war包方法 web项目打包到tomcat

将生成的war文件放到 tomcat的安装目录/webapps里面

使用eclipse制作war包方法 web项目打包到tomcat

重启tomcat war包自动解压成文件夹,通过浏览器可以直接访问了

使用eclipse制作war包方法 web项目打包到tomcat

 

 

相关文章:

  • 2021-07-08
  • 2021-10-06
  • 2021-12-30
  • 2021-06-29
  • 2021-08-04
  • 2021-08-19
  • 2021-10-30
猜你喜欢
  • 2021-09-06
  • 2021-06-09
  • 2021-06-18
  • 2021-11-18
  • 2021-05-21
  • 2021-11-26
  • 2021-06-13
相关资源
相似解决方案