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

版权声明:文章来源网络,版权归作者本人所有,如侵犯到原作者权益,请与我们联系删除或授权事宜,如果有误,请联系作者更改,谢谢,本人微信:void666666 https://blog.csdn.net/wt520it/article/details/84977875

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

猜你喜欢

转载自blog.csdn.net/wt520it/article/details/84977875
今日推荐