码迷,mamicode.com
首页 > Web开发 > 详细

Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd'问题解决方法

时间:2017-05-08 23:28:02      阅读:429      评论:0      收藏:0      [点我收藏+]

标签:bean   margin   ini   code   validate   val   ott   doc   work   

或者报错:

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:

nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘context:annotation-config‘.


原理参考:http://blog.csdn.net/hengyunabc/article/details/22295749

我不讲废话,单刀直入给出解决办法:主要是缺少dubbo.xsd,配置好就行了。

一:如何下载dubbo.xsd

        1.1 第一种办法:下载我附件 http://download.csdn.net/detail/wabiaozia/9398352

         1.2 第二种办法:这个dubbo.xsd就在你的dubbo.jar包里,解压后在路径里dubbo\META-INF就可以找到。

二:配置

        window-->preferences-->xml-->xml Catalog

技术分享

然后:

技术分享

再接着:

技术分享

最后:右键-->validate

技术分享

 

Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd'问题解决方法

标签:bean   margin   ini   code   validate   val   ott   doc   work   

原文地址:http://www.cnblogs.com/sos-blue/p/6828018.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!