Eclipse中XML文件正确的情况下总是提示错误的解决办法
-
错误信息: Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd).
-
原因:这是由于文件缓存造成的,里面有相关的配置与当前定义冲突
-
解决办法
- 打开Preferences -> General -> Network Connections -> Cache
- 全选,然后点击 Remove All 按钮
- 点击工程,右键Validate,报错消失