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

来源:互联网 发布:python编程实践 pdf 编辑:程序博客网 时间:2024/06/06 08:35

或者报错:

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


--------------------------------------------完-------------------------------------------------

我博客所有文章目录: 点击打开链接



0 0
原创粉丝点击