maven創建web項目-pom文件提示web.xml is missing and is set to true

使用maven創建web項目,選擇war類型後,pom文件紅叉

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

這時候需要右擊項目——>Java EE Tools——>Generate Deployment Descriptor Stub.然後系統會在src/main/webapp/WEB_INF文件加下創建web.xml文件。錯誤解決!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章