Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-2.5.xsd).

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-2.5.xsd). For more information, right click on the message in the Problems View and select "Show Details…"解决方案

maven项目applicationContext.xml springmvc.xml 头文件报错:
Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-2.5.xsd). 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/beans/spring-beans-2.5.xsd).
解决方案:

  1. 首先到Window(窗口)->Preferences(首选项) -> General -> Network Connections(网络连接) -> Cache 里面的缓存检查所需要的文件是否正确,不确定就直接点击Remove All 吧。
    Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-2.5.xsd).
  2. 然后右击当前的 Project 选择 Validate,Eclipse 会重新加载 xsd 文件;

Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-2.5.xsd).