Eclipse啟動Web項目 Tomcat中webapps中沒有專案檔夾

來源:互聯網
上載者:User

標籤:專案檔   刪除   cat   停止   plugins   容器   項目部署   介面   metadata   

一直用MyEclipse,後來用Eclipse時,啟動項目後去Tomcat webapps找對應檔案夾,發現沒有,才知道Eclipse 預設不往本地Tomcat部署。 
1.eclipse不像MyEclipse預設將項目部署到tomcat安裝目錄下的webapps中,而預設部署到工作目錄下的.metadata.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps中,tmp1檔案夾裡面存放著該項目的資訊。 
2.解決: 
為了使項目預設部署到tomcat安裝目錄下的webapps中,show view—>servers—>找到需要修改的tomcat—>右擊 後 
①停止eclipse內的Tomcat伺服器(stop) 
②刪除該容器中部署的項目(add and remove) 
③清除該容器相關資料(clean) 
④開啟tomcat的修改介面(open) (在server裡,選中需要修改的Tomcat,按F3即可出現編輯頁)

⑤找到servers location,選擇第二個(User tomcat Installation) 
⑥修改deploy path為webapps 
⑦儲存關閉

Eclipse啟動Web項目 Tomcat中webapps中沒有專案檔夾

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.