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

后端 未结 13 830
再見小時候
再見小時候 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:05

    Sometimes the problem occurs if you have moved your classes around and it refers to old classes, even if they don't exist.

    In this case, just do this :

    mvn eclipse:clean
    
    mvn eclipse:eclipse
    

    This worked well for me.

提交回复
热议问题