web.xml is missing and <failOnMissingWebXml> is set to true
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了web.xml is missing and <failOnMissingWebXml> is set to true相关的知识,希望对你有一定的参考价值。
。这时候需要右击项目——>Java EE Tools——>Generate Deployment Descriptor Stub.然后系统会在src/main/webapp/WEB_INF文件加下创建web.xml文件。错误解决!
当然这个方法是针对web项目的解决方案,如果你的工程不是web项目,那么还有另外一种解决方案,就是在pom文件中配置一下failOnMissingWebXml。具体配置如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | < build > < plugins > < plugin > < groupId >org.apache.maven.plugins</ groupId > < artifactId >maven-war-plugin</ artifactId > < version >2.6</ version > < configuration > < failOnMissingWebXml >false</ failOnMissingWebXml > </ configuration > </ plugin > </ plugins > </ build > |
以上是关于web.xml is missing and <failOnMissingWebXml> is set to true的主要内容,如果未能解决你的问题,请参考以下文章
Maven 项目提示:web.xml is missing and <failOnMissin>is set to true
maven项目提示web.xml is missing或红色感叹号
fltk-rs踩坑记录,解决could not find native static library cfltk, perhaps an -L flag is missing 问题
There is no Action mapped for namespace [/] and action name [xx] associated with context path...