• Referenced file contains errors For more information, right click on the message in the Problems View and select "Show Details..."


    Referenced file contains errors
    (http://www.springframework.org/schema/context/spring-context-3.1.xsd).
    For more information, right click on the message in
    the Problems View and select "Show Details..."

    解决办法1:
    在<?xml version="1.0" encoding="UTF-8"?>
    下面加上<xml-body></xml-body>,等builder 完毕后再去掉,OK

    解决办法2:
    将 Preferences > XML > XML Files > Validation中"Honour all XML schema locations"前的对号去掉。它将禁用指向不同schema位置相同命名空间引用的验证,仅以第一次找到的可验证的XML文件为结果。

    解决办法3:
    点击eclipse左上角菜单栏 Project->clean 清理一下你所出现问题的项目。不仅这个问题,还有很多奇怪的问题都可以通过这种方式解决

    解决办法4:
    首先为了确保 Eclipse 可以从远程拿到 xsd 文件,到 Window -> Preferences -> General -> Network Connections -> Cache 下的 Cache entries 框内检查所需要的文件是否正确,如果不确定,就点击 "Remove All",然后右击当前的 Project 选择 Validator,Eclipse 会重新加载 xsd 文件;


    Multiple annotations found at this line:
    - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd', because 1) could
    not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:interceptors'.

  • 相关阅读:
    【C#】调度程序进程已挂起,但消息仍在处理中;
    【WCF】wcf不支持的返回类型
    power design教程
    C# 动态修改Config
    【C#】delegate(委托) 将方法作为参数在类class 之间传递
    【.NET】Nuget包,把自己的dll放在云端
    【C#】C# 队列,
    【Chrome】新建Chrome插件,新建,事件行为,本地存储
    【IIS】iis6.1下添加两个ftp站点,
    【Jquery】$.Deferred 对象
  • 原文地址:https://www.cnblogs.com/Jeely/p/12419393.html
Copyright © 2020-2023  润新知