1:在项目上点右键->properties
2:在'Tomcat'下 'General' 选项卡,将 'Is a Tomcat Project' 勾选上,选择启动路径为webapp
3:在'Tomcat'下 'export to war settings' 选项卡,输入要导出的war文件路径和文件名,确定,返回项目
4:在项目上点右键->tomcat project->Export to the war file sets in project properties生成WAR包
5:打包成功,在指定的目录下看到生成的war文件
2:在'Tomcat'下 'General' 选项卡,将 'Is a Tomcat Project' 勾选上,选择启动路径为webapp
3:在'Tomcat'下 'export to war settings' 选项卡,输入要导出的war文件路径和文件名,确定,返回项目
4:在项目上点右键->tomcat project->Export to the war file sets in project properties生成WAR包
5:打包成功,在指定的目录下看到生成的war文件
本文详细介绍了如何在项目上设置并导出WAR包,包括配置Tomcat项目属性、选择启动路径和导出WAR文件路径等步骤。

5949

被折叠的 条评论
为什么被折叠?



