使用dubbo时spring配置中dubbo配置报错解决方法

作者: poxiao 分类: Dubbo 发布时间: 2018-05-31 13:51

在eclipse下 使用阿里dubbo分布式框架时,在配置dubbo配置之后,该配置文件会报错,错误如下:

错误信息如下:

报错原因是因为我们对于配置dubbo.xsd约束文件

在eclipse中添加dubbo.xsd文件的配置,步骤如下

windows->preferrence->xml->xml Catalog

add->catalog entry ->file system

点击file System选择dubbo.xsd文件

设置Location后,设置key值(一定要设置)

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

然后点击OK

然后在xml文件右键选择validate  或清理项目重新构建

 

然后错误的小红叉就消失不见了。

 

附件:dubbo.xsd

dubbo.xsd

 

参考资料:

 

https://blog.csdn.net/guishengbin/article/details/71942829

本文链接:使用dubbo时spring配置中dubbo配置报错解决方法

转载声明:本站文章若无特别说明,皆为原创,转载请注明来源:破晓(http://www.code2048.net),谢谢!^^


如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

发表评论

邮箱地址不会被公开。 必填项已用*标注