pom文件报错:

– 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

解决办法:

找到dubbo的jar包,解压后在META-INF文件夹下找到dubbo.xsd 

在eclipse中点击windows-->preferrence-->xml-->xmlcatalog 

选择add-->catalog entry  -->file system

dubbo.xml文件解析错误

找到dubbo.xsd文件。

key:http://code.alibabatech.com/schema/dubbo/dubbo.xsd

dubbo.xml文件解析错误

点击OK,点击OK。

在pom文件右击选择validate。

ok了

注意:这里的key值要与xml中的dubbo.xsd名称一致

dubbo.xml文件解析错误

相关文章:

  • 2021-05-28
  • 2022-12-23
  • 2021-11-09
  • 2021-11-25
  • 2021-10-27
  • 2021-04-10
  • 2021-06-14
  • 2022-12-23
猜你喜欢
  • 2021-10-05
  • 2022-01-18
  • 2022-12-23
  • 2021-11-24
  • 2021-07-15
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案