一、报错内容

annotatio-specified bean name ‘xxx’ for class[xxx] conflicts with existing,non-compatible bean definition of same name and class[xxx]
大概就是bean的名字重复了,并且其他人没有这个问题,确定是idea本地的问题

二、解决

一开始我是根据这个解决的:解决bean重名问题
但时候有又出现这问题再试上述解决方案就不行了
我的解决方案:
1、删除idea项目下的.ide文件夹
2、更换maven本地仓库目录,重新导入依赖

Logo

更多推荐