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

后端 未结 6 1941
南旧
南旧 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:46

    I encountered this with mvn after changing several folder names and related package names. Than I applied maven clean and run spring boot again, all solved:

    mvn clean
    mvn spring-boot:run
    

提交回复
热议问题