使用maven创建web项目时,可能会出现如下错误:
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文件了。
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文件了。