为了账号安全,请及时绑定邮箱和手机立即绑定

关于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 关注
  • 706 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号