出现小红叉,提示Referenced file contains errors (https://www.springframework.org/schema/beans/spring-beans-4.3.xsd).

可能你的工具比较新,也有可能缺少标签:

解决方案一:

Window → Preferences → MyEclipse →  Validation  →  XML  →  Honour all XML schema locations前面的“√”去掉,它将禁用指向不同schema位置相同命名空间引用的验证,仅以第一次找到的可验证的XML文件为结果。

解决后小红叉就会消失,则会稍微等一会,如果电脑性能好则会消失。

解决方案二:

执行解决方案一之后,还出先小红叉,则有可能缺少标签,或者缺少jar包,导入相应的jar包和补上标签即可解决。

 

解决方案三:

查看eclipse的problems有无报错,有报错可以清空。

xml出现Referenced file contains errors (https://www.springframework.org/schema/beans/spring-beans-4.3.xsd)

 

 

然后再可查看xml文件,发现出现小红叉消失了。

xml出现Referenced file contains errors (https://www.springframework.org/schema/beans/spring-beans-4.3.xsd)

相关文章:

  • 2021-06-27
  • 2021-10-10
  • 2021-10-18
  • 2021-10-01
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
猜你喜欢
  • 2021-09-17
  • 2021-11-26
  • 2021-10-03
  • 2021-11-10
  • 2022-12-23
相关资源
相似解决方案