在进行多模块项目编写时使用
@ComponentScan 可以跨模块扫描组件![]()
此时同名组件会引发ConflictingBeanDefinitionException问题
Failed to parse configuration class [com.ccit.moduleone.ModuleOneApplication]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'helloController' for bean class [com.ccit.moduleone.controller.HelloController] conflicts with existing, non-compatible bean definition of same name and class [com.ccit.core.controller.HelloController]
给其中一个命名即可解决