dubbo配置报错:The matching wildcard is strict, but no declaration can be found for element

症状:dubbo-provider.xml配置文件报错如下:
dubbo配置报错:The matching wildcard is strict, but no declaration can be found for element_第1张图片

原因:
http://code.alibabatech.com/schema/dubbo
http://code.alibabatech.com/schema/dubbo/dubbo.xsd
没有找到对应的源文件!

解决:Window -> Preferences -> XML -> XML Catalog -> 选中如图key,edit,将这个key关联到本地的文件 -> OK
dubbo配置报错:The matching wildcard is strict, but no declaration can be found for element_第2张图片
dubbo配置报错:The matching wildcard is strict, but no declaration can be found for element_第3张图片

注:如果XML Catalog Entries中没有如上key,则选择 Add -> Catalog Entry -> 将这个key关联到本地的文件 -> OK
dubbo配置报错:The matching wildcard is strict, but no declaration can be found for element_第4张图片

验证:关联成功后,在项目目录中找到该xml文件,选中,右键,选择Validate,稍等(约5秒),报错消失!
dubbo配置报错:The matching wildcard is strict, but no declaration can be found for element_第5张图片

你可能感兴趣的:(03_框架)