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

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、如果确实没有的话,就重新编译一下,再不行就重启编辑器

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章