摘自:https://blog.csdn.net/wabiaozia/article/details/50491700

或者报错:

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

dubbo.xsd的配置

然后:

dubbo.xsd的配置

再接着:

dubbo.xsd的配置

更正:

图中的key写错了,不应该是http://code.alibabatech.com/schema/dubbo,应该为:http://code.alibabatech.com/schema/dubbo/dubbo.xsd

key对应下图中的4

schema配置格式

dubbo.xsd的配置

更多schema相关知识可以参见:

我的这篇:http://blog.csdn.net/wabiaozia/article/details/78631259

最后:右键-->validate

dubbo.xsd的配置

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

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

相关文章:

  • 2021-09-05
  • 2021-11-13
  • 2021-07-19
  • 2022-12-23
  • 2022-01-14
  • 2022-03-09
  • 2021-10-30
  • 2021-12-22
猜你喜欢
  • 2021-09-01
  • 2021-10-01
  • 2021-07-25
  • 2021-10-27
  • 2021-06-13
  • 2022-01-13
相关资源
相似解决方案