温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

dubbo.xsd的配置

发布时间:2020-07-02 09:17:21 来源:网络 阅读:1084 作者:浅嫣 栏目:web开发

报错:


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'.

--------------------- 

原因:缺少dubbo.xsd

解决步骤:

一:下载dubbo.xsd


        1 第一种办法:百度云下载        https://pan.baidu.com/s/16N0PDU0zcyFWlMa2PML1OA


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

--------------------- 


二:配置

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

      1.在xml Catalog里

                点击User Specified Entries再点Add再点FileSystem

                进入你解压的dubbo.xsd放的位置

        2.在Add XML Catalog Element里

                Location:D:\install\dubbo\dubbo.xsd

                Key type :  Schema Location

                Key:    http://code.alibabatech.com/schema/dubbo/dubbo.xsd

 三: 最后:右键-->validate

        注意:配置的目的是在xml中快捷键显示

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI