使用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文件。錯誤解決!
使用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文件。錯誤解決!