Referenced file contains errors

Referenced file contains errors (file:/D:/TONG/tong/eclipse/config_/xsd/spring-context-4.2.xsd). For more information, right click on the message in the Problems
View and select "Show Details..."

 

Spring 版本变更,但是Eclipse的编译器还是使用之前缓存的Spring-beans-*.xsd文件

Eclipse编译器有个缓存会缓存这些配置文件,

这样验证的时候会提示版本不提示

 

解决办法,清空这些文件,重新加载这些配置文件,

 

1.Preferences -> General -> Network Connections -> Cache

选择响应的文件病点击删除或者直接点击删除全部。

 

2.Maven工程,右键→Properties→Maven→Update Project

 

3.关闭项目,重新打开或Project→Clean 

Spring使用多个配置文件时,文件头的配置应保持统一

posted @ 2017-08-28 15:34  壹品轩  阅读(271)  评论(0编辑  收藏  举报