maven项目搭建出现web.xml is missing and <failOnMissingWebXml> is set to true解决办法

个人搭建maven项目遇到的问题一:

转自:http://stackoverflow.com/questions/31835033/web-xml-is-missing-and-failonmissingwebxml-is-set-to-true

使用maven创建之后出现如下错误

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

此问题的解决办法:

1. 右键点击Project Explorer中的Deployment Descriptor(选中部分)

2. 选择Generate Deployment Descriptor Stub

这样就能生成src/main/webapp/WEB_INF/web.xml文件了。

猜你喜欢

转载自blog.csdn.net/qq_31306441/article/details/81088035