在myeclipse中或者eclipse环境中的配置文件报错

Javaweb项目在myclipse中spirng配置文件 xml有小红叉Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.3.xsd). For more information, right click on the message in the Problems View and select "Show Details..."

解决方案:

办法一:Eclipse 中选中项目点击 Progect –>clean 清理一下,删除缓存。

办法二: 这是由于缓冲造成的,里面有相关的配置和当前定义冲突,解决办法是清除缓存信息, 1:打开Preferences -> General -> Network Connections -> Cache:; 2:全选,然后点击按钮Remove All 按钮。

 项目正常办法三:将 Preferences > XML > XML Files > Validation中”Honour all XML schema locations”前的对号去掉。它将禁用指向不同schema位置相同命名空间引用的验证,仅以第一次找到的可验证的XML文件为结果。办法一或者二 不能解决的时候,时候办法三,可以解决。

猜你喜欢

转载自blog.csdn.net/tyg88888/article/details/80387611