参考链家https://blog.csdn.net/sinat_22911279/article/details/77454139

这是因为没有生成web.xml文件

解决办法

1.右键项目选择Properties-->Project Facets-->取消勾选Dynamic web Module,点击apply


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

2.重新勾选Dynamic web Module,点击下方 Further configuration available...

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

3.填写Content directory 如图所示即可

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



相关文章: