本篇文章主要讲解,控制器名冲突的解决办法及原因说明,通过本文章你可以快速解决由于控制器名冲突导致的bug。
日期:2024年5月4日
作者:任聪聪
完整报文
Failed to parse configuration class [com.fileLocalDemo.FileLocalDemoApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'indexController' for bean class [com.fileLocalDemo.controller.xxxx.xxxController] conflicts with existing, non-compatible bean definition of same name and class [com.fileLocalDemo.controller.xxxx.xxxxController]