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

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

    Using Eclipse, I had moved classes into new packages, and was getting this error. What worked for me was doing: Project > Clean

    and also cleaning my TomCat server by right-clicking on it and selecting clean

    Thanks to Rock Lee's answer for helping me figure it out :)

提交回复
热议问题