dubbo spring pom文件报错:提示no declaration can be found for element 'dubbo:service'.

时间:2021-07-23 09:27:51

pom文件报错:The matching wildcard is strict, but no declaration can be found for  element 'dubbo:service'.

dubbo spring pom文件报错:提示no declaration can be found for element 'dubbo:service'.

解决办法:

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

dubbo spring pom文件报错:提示no declaration can be found for element 'dubbo:service'.

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

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

找到dubbo.xsd文件。

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

dubbo spring pom文件报错:提示no declaration can be found for element 'dubbo:service'.

点击OK,点击OK。

在pom文件右击选择validate。