spring-web配置出错

spring-web配置出错

Multiple annotations found at this line:

- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/mvc/

spring-mvc-3.2.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 

'mvc:annotation-driven'.

http://img1.sycdn.imooc.com//climg/5dfe42fe097ed5bb10680318.jpghttp://img1.sycdn.imooc.com//climg/5dfe432809bf17e211200206.jpg

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
提问者 冲呀鸭 2019-12-22 00:14:59

已解决,是因为pom.xml中spring的版本是4.2,spring-web配置中是3.2,将3.2改为4.2不报错了。

可是我是跟着老师的配置来的,我也下载了源码导入到eclipse中,我看了一下源码版本也不一致,却没有报错,这是为什么?

  • 同学你好,可能是之前的没有下载好jar包,同学修改版本后,重新下载了jar包。 解决了就好,同学自己解决了,很棒哦,继续加油。祝学习愉快
    2019-12-22 09:51:18
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
微信客服

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

帮助反馈 APP下载

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

公众号

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

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师