Multiple annotations found at this line: - cvc-elt.1: Cannot find the declaration of element 'beans

最近新来的同事找我解决这个错误,一开始我也挺好奇,后来经过我仔细研究这个是spring的版本和配置不匹配,接下来我给大家说下解决办法。
错误代码提示:

Multiple annotations found at this line: 	- cvc-elt.1: Cannot find the declaration of element 'beans

这个是spring 配置文件中报的错误
经过我的判断应该是父文件pom配置的版本号不对应结果试了下,就不报错了:
修正错误提示:
在这里插入图片描述

spring配置文件修改:
在这里插入图片描述

以后大家在开发的时候一定要注意版本号是否对应。

资源参考:https://blog.csdn.net/u014403008/article/details/52784881

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值