Annotation-specified bean name conflicts with existing, non-compatible bean def

后端 未结 13 950
再見小時候
再見小時候 2021-01-31 01:51

I\'m having a problem with some Spring bean definitions. I have a couple of context xml files that are being loaded by my main() method, and both of them contain almost exclusiv

13条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-31 02:06

    If none of the other answers fix your problem and it started occurring after change any configuration direct or indirectly (via git pull / merge / rebase) and your project is a Maven project:

    mvn clean
    

    Hope this fixes your problem. Or someones

提交回复
热议问题