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

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

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

具体错误贴出来:

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 选择刚刚下载的文件路径

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

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

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

好了 问题解决

以上是 Eclipse解决关于dubbo在xml中出现Multiple annotations found at this line 的全部内容, 来源链接: utcz.com/a/56605.html

回到顶部