web.xml 丢失并且 <failOnMissingWebXml>设置为真 [英] web.xml is missing and <failOnMissingWebXml> is set to true
本文介绍了web.xml 丢失并且 <failOnMissingWebXml>设置为真的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
考虑:
当我在
Consider:
When I create a simple Maven project in Eclipse I am getting this error:
web.xml is missing and
<failOnMissingWebXml>
is set to true
How can I fix this problem?
解决方案
You can do it also like this:
- Right click on Deployment Descriptor in Project Explorer.
- Select Generate Deployment Descriptor Stub.
It will generate WEB-INF folder in src/main/webapp and an web.xml in it.
这篇关于web.xml 丢失并且 <failOnMissingWebXml>设置为真的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文