1.右键工程名--Export----- WAR file
2.输入war包名,选择导出路径,finish完成
eclipse -------导出war包
原文:https://www.cnblogs.com/max-hou/p/10816398.html