亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

關于schema的報錯問題如下,請問是怎么回事呢 ?

關于schema的報錯問題如下,請問是怎么回事呢 ?

心有法竹 2023-03-22 16:12:31
Multiple annotations found at this line: - schema_reference.4: Failed to read schema document 'http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'sca:service'.
查看完整描述

2 回答

?
寶慕林4294392

TA貢獻2021條經驗 獲得超8個贊

你spring配置文件的頭部 schema出問題了 
1)http://www.osoa.org/xmlns/sca/1.0/spring-sca.xsd這個找不到 
3)這個文件的根元素不是<xsd:schema> 
你可以找個正確的把你這個xml配置文件的頭部替換一下,不知道你使用的spring哪個版本,下面我貼一個:僅供參考,或者你可以在網上搜索一個正確的替換下: 
<?xml version="1.0" encoding="UTF-8"?> 
<beans 
xmlns="http://www.springframework.org/schema/beans" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> 
</beans>

查看完整回答
反對 回復 2023-03-24
?
牛魔王的故事

TA貢獻1830條經驗 獲得超3個贊

<?xml version="1.0" encoding="UTF-8"?> 
<beans 
xmlns="http://www.springframework.org/schema/beans" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"> 
</beans>

查看完整回答
反對 回復 2023-03-24
  • 2 回答
  • 0 關注
  • 645 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號