关键点在于这个xx的类,名称重复了
Annotation-specified bean name ‘xx’ for bean class [xxx] conflicts with existing, non-compatible bean definition of same name and class[xxx]
原因:
spring中有相同名称的类时,使用时没有明确指定bean名称,则会抛出异常:
最简单的方法:
在项目中查找重复的Bean名称,将部分重复的bean名称更改一下;更改原则是:公共包下面的Bean保持原名称,自己模块下重复的Bean