天天看點

web.xml is missing and <failOnMissingWebXml> is set to true[解決]

今天建立一個maven項目 出現如下錯誤:

web.xml is missing and <failOnMissingWebXml> is set to true      

在項目視圖下

web.xml is missing and &lt;failOnMissingWebXml&gt; is set to true[解決]

右鍵 單擊項目名 

選擇 “Deployment Descriptor” 

選擇 : Generate Deployment Descriptor Stub

web.xml is missing and &lt;failOnMissingWebXml&gt; is set to true[解決]

産生 WEB-INF 檔案夾和 web.xml 檔案

 即可解決問題