Eclipse新建Maven项目web.xml is missing and <failOnMissingWebXml> is set to true错误 pox.xml编译错误

回溯

关注

阅读 51

2023-03-13


场景

创建maven项目后

 pom.xml出现红色错误:

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

并且WEB-INF下没有web.xml。

解决

右击项目--JavaEETools--GenerateDeploymentDescriptorStub

然后在webapp下会创建web.xml文件。

pom.xml不在出现红色错误。

精彩评论(0)

0 0 举报