Spring配置文件里xsd找不到时解决方案
今天导入了大神的Dubbo框架,分析下源码案例发现报错:
错误:
Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but n....
分析了下,找不到http://code.alibabatech.com/schema/dubbo/dubbo.xsd 打开网页看下,alibabatech早关闭了。
解决方案:
在m2仓库里找到dubbo.jar包,取出包里的xsd,放到自己指定的目录。然后重新配置下eclipse的xsd
配置eclipse 自定义xsd,特别要注意key就是你spring里引用的那个xsd。最后在eclipse中对spring.xml重新右击validate下行了。
posted on 2017-06-18 18:20 MountainTop 阅读(471) 评论(0) 编辑 收藏 举报