0
点赞
收藏
分享

微信扫一扫

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不在出现红色错误。

举报

相关推荐

0 条评论