在导入maven工程的时候,报出如下错误:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:consumer'.
解决方案如下
需要上网下载dubbo的xsd文件,地址:http://download.csdn.net/detail/zp522123428/8036977
点击windows->preferrence->xml->xmlcatalog
add->catalog entry ->file system 选择刚刚下载的文件路径
修改key type为Schema location
修改key和配置文件的http://code.alibabatech.com/schema/dubbo/dubbo.xsd相同
选择xml的右键,validate就可以完美解决这些问题
转载于http://www.myexception.cn/eclipse/1764326.html