搭建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就可以解决了。

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

相关文章:

  • 2021-09-29
  • 2021-05-30
  • 2021-07-11
  • 2021-05-12
  • 2022-12-23
猜你喜欢
  • 2021-06-24
  • 2021-07-01
  • 2021-06-07
  • 2021-08-25
  • 2022-12-23
相关资源
相似解决方案