【问题标题】: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 存在于 WEB-INF 下,我也会收到错误“web.xml is missing and <failOnMissingWebXml> is set to true”?
【发布时间】:2018-12-25 10:07:17
【问题描述】:

为什么即使 web.xml 存在于 WEB-INF 下,我也会收到错误 "web.xml is missing and &lt;failOnMissingWebXml&gt; is set to true"

这不是this question 的重复。 我的问题有所不同,因为我的 WEB-INF 文件夹中已经有 web.xml 文件,但仍然出现错误。

【问题讨论】:

标签: java spring-mvc web.xml


【解决方案1】:

您的 Eclipse 特定设置文件可能已损坏。

查看Spring cannot find file in classpath, but it's right there at the root of the war file的答案。

对我来说,这两个问题的根本原因是一样的。

【讨论】:

    猜你喜欢
    • 2016-06-20
    • 2021-01-31
    • 2023-03-21
    • 2022-11-28
    • 1970-01-01
    • 1970-01-01
    • 2022-12-09
    • 2018-11-21
    • 2019-01-15
    相关资源
    最近更新 更多