1、报错信息:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'xdfdubbo:consumer'.
2、环境:eclipse导入dubbo
3、原因:xml文件报错,eclipse不认识dubbo标签
4、解决方案:
下载dubbo.jar文件,解压后找到dubbo.xsd文件,在eclipse中,windows->preferrence->xml->xmlcatalog
add->catalog entry ->file system 选择刚刚的dubbo.xsd文件,修改key值和配置文件的http://code.alibabatech.com/schema/dubbo/dubbo.xsd 相同,保存。
项目右键,maven -> update,即可。