zoukankan      html  css  js  c++  java
  • servlet.xml 出现 Referenced file contains errors(http://.......)

    问题描述:

    打开Eclipse突然发现Web工程的servlet.xml突然报了红叉叉,错误信息如下:

    Referenced file contains errors (http://www.springframework.org/schema/tool/spring-tool-3.0.xsd). For more information, right click on the 

    message in the Problems View and select "Show Details..."

    之前这个文件是没问题的,网上找了很多方法,发现了原因,解决办法如下:

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

    PS:我的报错就是因为spring-tool出现了多个版本,重新Validate之后就没错了

    2. 如果错误依旧,那就需要删掉 xsd 文件的版本号,例如:

    http://www.springframework.org/schema/context/spring-tool-3.0.xsd

    改成: http://www.springframework.org/schema/context/spring-tool.xsd

  • 相关阅读:
    register_shutdown_function
    字节转换
    考虑 PHP 5.0~5.6 各版本兼容性的 cURL 文件上传
    linux--svn checkout
    linux命令
    linux---mysql忘记密码
    array_merge函数的注意事项
    逻辑卷使用记录笔记
    系统设计时关于性能问题处理的几点心得
    SSH防暴力破解脚本
  • 原文地址:https://www.cnblogs.com/liuchangchun/p/3727456.html
Copyright © 2011-2022 走看看