eclipse导出war包

在项目上点右键->properties
eclipse打包war文件
在'Tomcat'下 'General' 选项卡,将 'Is a Tomcat Project' 勾选上,选择启动路径为webapp,(我的是WebRoot)
eclipse打包war文件
在'Tomcat'下 'export to war settings' 选项卡,输入要导出的war文件路径和文件名,确定,返回项目 
eclipse打包war文件
在项目上点右键->tomcat project->Export to the war file sets in project properties生成WAR包
eclipse打包war文件
打包成功,在指定的目录下看到生成的war文件!
eclipse打包war文件
-----
如果修改单个文件,可以用zip,rar工具替换单个文件哦,不用重新再打

猜你喜欢

转载自zqs520.iteye.com/blog/2299881
今日推荐