Referenced file contains errors (http://www.springframework.org/schema/tx/spring-tx-3.2.xsd).报错解决方案

Referenced file contains errors (http://www.springframework.org/schema/tx/spring-tx-3.2.xsd).报错解决方案

Referenced file contains errors (http://www.springframework.org/schema/tx/spring-tx-3.2.xsd).报错解决方案

1.首先可以尝试通过禁用xml的命名空间引用的验证来解决,具体设置是在:Window → Preferences → Validation → XML 将设置里的对勾取消掉即可,修改完设置之后记得刷新一下maven项目,项目上右键maven — update刷新后报错就消失了:
Referenced file contains errors (http://www.springframework.org/schema/tx/spring-tx-3.2.xsd).报错解决方案
2.如果第一种方式仍然报相同的错误,那么可以在spring的xml配置文件的头部把一下这些版本信息手动更改一下:
Referenced file contains errors (http://www.springframework.org/schema/tx/spring-tx-3.2.xsd).报错解决方案
3.选择 Window -> Preferences -> General -> Network Connections -> Cache 下的 Cache entries 里面是否有对应的文件信息,或者直接全部删除,点击 “Remove All”,然后右击当前的 Project 选择 Validator,Eclipse 会重新加载 xsd 文件Referenced file contains errors (http://www.springframework.org/schema/tx/spring-tx-3.2.xsd).报错解决方案