报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration

创建dubbo项目,xml文件报错:

报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration

eclipse识别不了标签。需要下载dubbo.xsd文件。可以在github下找到文件下载:

报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration

把下载的文件保存到本地一个位置上。

然后在eclipse中,

windows->preferrence->xml->xmlcatalog 

add->catalog entry  ->file system 选择刚刚下载的文件路径

修改key值和配置文件的位置http://code.alibabatech.com/schema/dubbo/dubbo.xsd,如下图:

报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration

 

在xml文件右键validate,问题就解决了。