spring中配置dubbo,出现:can be found for element 'dubbo:application'解决办法
错误描述:
The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'
错误现象:
解决办法:
1.在项目的本地工作空间中找到lib/dubbo-2.8.4.jar,复制出来,解压缩,拿到META-INF/dubbo.xsd文件。如放在E:/dubbo/dubbo.xsd
2.在eclipse中依次点击windows-->preferrence-->xml-->xmlcatalog如图:
3.点击Add
1)在Catalog Entry的Location中按File System...选择第1步保存的dubbo.xsd
2)在Key中填写:http://code.alibabatech.com/schema/dubbo/dubbo.xsd
点击OK。
4.右键项目,点击Validate即可。