Annotation-specified bean name ‘*‘ for bean class*conflicts with existing, non-compatible bean 问题解决

项目启动报错:

Annotation-specified bean name *** for bean class [com.**.**.**.**]

conflicts with existing, non-compatible bean definition of same name and class [com.**.**.**.**]

由于存在同名bean,导致冲突

解决方法:

1.maven-clean(亲测好用)

2.(若1方法未解决)清理缓存重启项目

经验分享 程序员 微信小程序 职场和发展