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

原因是在项目中缺少web.xml,且<failOnMissingWebXml>被设置成了true

解决方法:

1、从其他项目复制一个web.xml

2、右击项目——>Properties——>Project Facets  将Dynamic Web Module的勾去掉,点击Apply,再重新勾上,点击下方出现的Further configuration availber,再选择生成的目录即可生成web.xml

 

posted @ 2020-04-13 21:48  ~驰~  阅读(163)  评论(0)    收藏  举报