Caused by: org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'segmentDeductionControl' for bean class [com.icongtai.yamei.tji.core.stream.cal.impl.SegmentDeductionControl] conflicts with existing, non-compatible bean definition of same name and class [com.icongtai.yamei.tji.core.service.inner.impl.SegmentDeductionControl]
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.checkCandidate(ClassPathBeanDefinitionScanner.java:348)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:286)
at org.springframework.context.annotation.ComponentScanAnnotationParser.parse(ComponentScanAnnotationParser.java:132)
at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:288)
at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245)
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:202)
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:170)
... 37 common frames omitted
spring 或者spring-boot 中,定义了同名字的两个bean 报错。