Eclipse解决关于dubbo在xml中出现Multiple annotations found at this line

之前都遇到这样的问题,但是都没在意,只是解决了,后才才意识到应该总结下的,对自己毕竟来说是一个成长。毕竟这张图说明当前生活状况 hh`

在这里插入图片描述

具体错误贴出来:

Multiple annotations found at this line:
	- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.
	- schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not find the document; 2) the document 
	 could not be read; 3) the root element of the document is not <xsd:schema>.

最主要的原因Eclips中没有下载关于dubbo的xsd

下载dubbo的xsd地址:
http://download.csdn.net/download/he000111/8244449

解决方法:
windows->preferrence->xml->xml catalog

add->catalog entry ->file system 选择刚刚下载的文件路径
上图:
在这里插入图片描述

在这里插入图片描述

保存完毕之后,对xml文件右键 ------> Validate

好了 问题解决

文章来源网络,版权归作者本人所有,如侵犯到原作者权益,请与我们联系删除或授权事宜
如果有误,请联系作者更改,谢谢,本人微信:void666666

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值