问题描述:在配置文件时头文件出现红x,且显示错误提示为:
Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.3.xsd). For more information, right click on the message in the Problems View and select “Show Details…”
解决方法1:
第一步:Window -> Preferences -> General -> Network Connections -> Cache
第二步:点击remove all,看到项目都有了红叉叉别着急。接着第三步。
第三步:点击当前的project项目,右键点击,弹出一页列表,在倒数第二个找到Validate,点击之后,等待eclipse重新加载这些文件,之后报错就会消失了。
解决方法2:
去掉xml文件下的版本号,或者补充xml文件下的版本号进行尝试。