1. 程式人生 > >Spring配置文件裏xsd找不到時解決方案

Spring配置文件裏xsd找不到時解決方案

images ... multi col card 源碼 ota match spring配置

今天導入了大神的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下行了。

技術分享

Spring配置文件裏xsd找不到時解決方案