web.xml is missing and <failOnMissingWebXml> is set to true[解决]

web.xml is missing and <failOnMissingWebXml> is set to true[解决]


2018年07月24日 10:51:41
今天创建一个maven项目 出现如下错误:
web.xml is missing and <failOnMissingWebXml> is set to true
在项目视图下 ==》右键 单击项目名
选择 “Deployment Descriptor” 
选择 : Generate Deployment Descriptor Stub
产生 WEB-INF 文件夹和 web.xml 文件
 即可解决问题
 
posted @ 2018-07-24 10:42  忘泪  阅读(2949)  评论(0编辑  收藏  举报