org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'factorApplyController' for bean class [com.autoserve.modules.factor.web.FactorApplyController] conflicts with existing, non-compatible bean definition of same name and class [com.autoserve.modules.app.web.FactorApplyController]
出现这个情况一般都是controller名字重复,@Controller注解没有办法解析正确的controller
本文探讨了在Spring Boot项目中遇到的控制器名称冲突问题,具体表现为@Controller注解无法正确解析到预期的控制器上。文章深入分析了问题的原因,并提供了解决方案。
885

被折叠的 条评论
为什么被折叠?



