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

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

    I had the same issue. I solved it by using the following steps(Editor: IntelliJ):

    1. View -> Tool Windows -> Maven Project. Opens your projects in a sub-window.
    2. Click on the arrow next to your project.
    3. Click on the lifecycle.
    4. Click on clean.

提交回复
热议问题