创建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,问题就解决了。

相关文章:

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