天天看点

Referenced file contains errors 解答

解决方案如下:

1. 首先为了确保 Eclipse 可以从远程拿到 xsd 文件,到

Window -> Preferences -> General -> Network Connections -> Cache

下的 Cache entries 框内检查所需要的文件是否正确,如果不确定,就点击 “Remove All”,然后右击当前的 Project 右击,选择 Validator,Eclipse 会重新加载 xsd 文件;

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

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

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

继续阅读