defined in null, could not be registered. A bean with that name has already been defined

今兒在啓動項目的時候報這個錯誤,一臉懵逼 我在配置文件中配置了spring.main.allow-bean-definition-overriding=true啊 爲啥還會出現這個錯誤呢,後來經過測試,可能是複製文件導致的,把工程下的iml文件刪除掉,然後重新生成就好了

The bean 'statisticsService.FeignClientSpecification', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

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