dubbo-spring-boot-project
dubbo-spring-boot-project copied to clipboard
Parameter 2 of method sentinelDataSourceHandler in com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration required a single bean, but 2 were found
APPLICATION FAILED TO START
Description:
Parameter 2 of method sentinelDataSourceHandler in com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration required a single bean, but 2 were found: - dubboScanBasePackagesPropertyResolver: defined by method 'dubboScanBasePackagesPropertyResolver' in class path resource [org/apache/dubbo/spring/boot/autoconfigure/DubboRelaxedBinding2AutoConfiguration.class] - environment: a programmatically registered singleton
Action:
Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed
Which version your application used?
if this issue is still open, which bean should be marked as primary?