开发者社区 > 云原生 > 正文

HystrixSecurityAutoConfiguration需要在启动时注入bean,但有两个b

Field existingConcurrencyStrategy in org.springframework.cloud.netflix.hystrix.security.HystrixSecurityAutoConfiguration required a single bean, but 2 were found: - seataHystrixConcurrencyStrategy: defined by method 'seataHystrixConcurrencyStrategy' in class path resource [com/alibaba/cloud/seata/feign/hystrix/SeataHystrixAutoConfiguration.class] - sleuthHystrixConcurrencyStrategy: defined by method 'sleuthHystrixConcurrencyStrategy' in class path resource [org/springframework/cloud/sleuth/instrument/hystrix/SleuthHystrixAutoConfiguration.class]

环境信息

JDK version : OS : Others:

原提问者GitHub用户cwm3412638

展开
收起
学习娃 2023-06-14 16:40:28 46 0
1 条回答
写回答
取消 提交回答
  • 只需在启动类中排除冲突的文件

    scanBasePackages = "com.gcyl.pig.shop.*", exclude = {SleuthHystrixAutoConfiguration.class}

    原回答者GitHub用户

    2023-06-14 17:17:39
    赞同 展开评论 打赏
问答分类:
问答地址:

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

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载