Eclipse中xml配置最上边报错Multiple annotations found at this line: - Referenced file contains errors (http:

解决Eclipse中XML最上边报错Multiple annotations found at this line:

- Referenced file contains errors (http://www.springframework.org/schema/aop/spring-aop-4.1.xsd). For more information, right click on the message in the Problems View and select "Show 
 Details..."
- Referenced file contains errors (http://www.springframework.org/schema/context/spring-context.xsd). For more information, right click on the message in the Problems View and select "Show 
 Details...

第一种解决办法,将箭头指向的地方的版本号删除

在这里插入图片描述

第二种方法

第一步依次点击Window>Preferences
然后点击XML>XML Files >Validation,取消勾选:Honour all XML schema locations,这告诉eclipse,不再验证不同schema位置的相同命名空间的引用,仅以第一次找到的可验证的XML文件为结果。 然后点击下面的Apply and Close按钮,如下图所示.
在这里插入图片描述
在弹出来的窗口选择是即可
在这里插入图片描述

这样一般就解决了绝大多数的问题,当然如果这些都解决不了,还有一个办法

第三种办法

修改xmlns:dwr和spring-context的版本号一致
在这里插入图片描述
如果没有xmlns:dwr可手动添加

xmlns:dwr="http://directwebremoting.org/schema/spring-dwr/spring-dwr-2.4.xsd"
  • 5
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值