Eclipse新建Maven项目web.xml is missing and failOnMissingWebXml is set to true错误 pox.xml编译错误
生活随笔
收集整理的這篇文章主要介紹了
Eclipse新建Maven项目web.xml is missing and failOnMissingWebXml is set to true错误 pox.xml编译错误
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
場景
創建maven項目后
?pom.xml出現紅色錯誤:
?web.xml is missing and <failOnMissingWebXml> is set to true
并且WEB-INF下沒有web.xml。
解決
右擊項目--JavaEETools--GenerateDeploymentDescriptorStub
然后在webapp下會創建web.xml文件。
pom.xml不在出現紅色錯誤。
總結
以上是生活随笔為你收集整理的Eclipse新建Maven项目web.xml is missing and failOnMissingWebXml is set to true错误 pox.xml编译错误的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 怎样用命令行生成自己的签名文件keyst
- 下一篇: Cordova将vue项目打包成apk(