Spring Boot ConflictingBeanDefinitionException: Annotation-specified bean name for @Controller class

后端 未结 6 1912
南旧
南旧 2021-02-18 13:50

I keep getting the ConflictingBeanDefinitionException error in my Spring boot application. I am not entirely sure as to how to address it, I have several @Con

6条回答
  •  野的像风
    2021-02-18 14:42

    I ran into the same problem but for a different reason.

    This can also occur if you move your classes around in your project and fail to do a 'clean'.

    I use gradle with spring-boot plugin. Now I usually run:

    $> ./gradlew clean bootRun
    

提交回复
热议问题