为什么我收到错误“web.xml is missing and <failOnMissingWebXml>"设置为真"即使 web.xml 存在于 WEB-INF 下? [英] Why I am getting error "web.xml is missing and <failOnMissingWebXml> is set to true" even when web.xml is present under WEB-INF?
本文介绍了为什么我收到错误“web.xml is missing and <failOnMissingWebXml>"设置为真"即使 web.xml 存在于 WEB-INF 下?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么我收到错误 web.xml is missing and
即使 web.xml 存在于 WEB-INF 下?
Why I am getting error "web.xml is missing and <failOnMissingWebXml> is set to true"
even when web.xml is present under WEB-INF?
这不是重复的 这个问题.我的问题有所不同,因为我的 WEB-INF
文件夹中已有 web.xml
文件,但仍然出现错误.
This is not duplicate of this question. My issue is different as I already have web.xml
file in my WEB-INF
folder, but still getting the error.
推荐答案
您的 Eclipse 特定设置文件可能已损坏.
You may have a corrupted Eclipse-specific settings file.
查看Spring 在类路径中找不到文件,但它就在 war 文件的根目录.
对我来说,两个问题的根本原因相同.
For me, both problems had the same root cause.
这篇关于为什么我收到错误“web.xml is missing and <failOnMissingWebXml>"设置为真"即使 web.xml 存在于 WEB-INF 下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文