SpringBoot项目启动失败报错Annotation-specified bean name ‘xx‘ for bean class [xxx] conflicts with existing

发布时间 2023-05-22 18:06:38作者: 笑~笑

Annotation-specified bean name 'datahubServiceImpl' for bean class [com.peony.common.service.impl.DatahubServiceImpl] conflicts with existing, non-compatible bean definition of same name and class [com.peony.common.service.DatahubServiceImpl]

 

1、有两个同名的注入类

2、如果确实没有的话,就重新编译一下,再不行就重启编辑器