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、如果確實沒有的話,就重新編譯一下,再不行就重啓編輯器

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