关于Sentinel这种问题如何解决呢?

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

这种问题如何解决呢

原提问者GitHub用户Ariel827

展开
收起
学习娃 2023-05-19 16:11:43 150 分享 版权
1 条回答
写回答
取消 提交回答
  • 您可以检查是否存在不兼容的依赖项。您也可以询问https://github.com/alibaba/spring-cloud-alibaba

    原回答者GitHub用户sczyh30

    2023-05-19 20:53:46
    赞同 展开评论

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

还有其他疑问?
咨询AI助理