1.選擇File -> Export

2.選擇打包成WAR檔:Web -> WAR file -> Next

3.Web選擇專案(Web project),儲存位置(Destination),執行此專案欲運行伺服器版本(Target runtime),最後按下結束。

完成後可獲得一個.war檔,將此檔案放置於Tomcat的webapps目錄下,重新啟動伺服器,會自動解壓縮,並部署於伺服器上。
個人文章或筆記
1.選擇File -> Export
2.選擇打包成WAR檔:Web -> WAR file -> Next
3.Web選擇專案(Web project),儲存位置(Destination),執行此專案欲運行伺服器版本(Target runtime),最後按下結束。
完成後可獲得一個.war檔,將此檔案放置於Tomcat的webapps目錄下,重新啟動伺服器,會自動解壓縮,並部署於伺服器上。