cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/h273979586/article/details/80756822

搭建dubbo服务时提示无法下载dubbo.xsd文件,可能因为xml引用的网站地址找不当前使用dubbo版本。


具体错误:
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 .

根据错误提示发现从http://code.alibabatech.com/schema/dubbo/dubbo.xsd地址下无法下载dubbo.xsd文档,需要手动配置一下“
        1. 去网上提前下载好dubbo.xsd文档,保存到本地路径下。
        2. 在eclipse中选择在windows->preferrence->xml->xmlcatalog->add->catalog entry ->file system
        3.选择下载好的dubbo.xsd文档
        4.修改Key值,要和配置文件中的”http://code.alibabatech.com/schema/dubbo/dubbo.xsd“地址一样。
        5.在xml文件右键validate就可以解决了。

这里写图片描述

猜你喜欢

转载自blog.csdn.net/h273979586/article/details/80756822