dubbo配置檔案xml校驗報錯

2021-08-07 06:28:04 字數 689 閱讀 5118

配置dubbo服務xml後,程式能正常執行,但validate會出現一些異常: 

multiple annotations found at this line: 

- schema_reference.4: failed to read schema document '', 

because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not 

解決辦法: 

2)在eclipse中匯入檔案dubbo.xsd: 

windows->preferrence->xml->xmlcatalog, 

add->catalog entry  ->file system 選擇檔案dubbo.xsd 

新增後,key預設是這樣的: 

3)修改key值為: 

,因為xml配置檔案中xsi:schemalocation的也是這個值,保持一致,重新validate,異常消失 

dubbo配置檔案

一 配置檔案組成 dubbo registry註冊中心 dubbo monitor監控中心 dubbo provider服務提供者 dubbo service暴露服務 dubbo protocol協議資訊 dubbo consumer服務消費者 dubbo reference服務引用 dubbo m...

dubbo配置檔案

一 配置檔案組成 dubbo registry 註冊中心 dubbo monitor 監控中心 dubbo provider 服務提供者 dubbo service 暴露服務 dubbo protocol 協議資訊 dubbo consumer 服務消費者 dubbo reference 服務引用 ...

dubbo配置檔案異常

今天遇到了個問題,把專案遷移到其他地方,匯入的時候dubbo的配置檔案有異常,但是不影響,可以繼續跑,請原諒我屌絲程式設計師的強迫症,不容許看見一點點x的標誌 異常內容 cvc complex type.2.4.c the matching wildcard is strict,but no dec...