SeataHystrix与SleuthHystrix 冲突

Java 未结 1 1816
jeckxu
jeckxu 剑童 2019-11-09 11:45

一、该问题的重现步骤是什么?

1. 业务服务加入链路追踪

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

期待结果:正常启动

实际看到:启动报错

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladex 版本 2.2.0, mac系统10.15


四、请提供详细的错误堆栈信息,这很重要。

***************************

APPLICATION FAILED TO START

***************************

Description:

Field existingConcurrencyStrategy in org.springblade.core.cloud.hystrix.BladeHystrixAutoConfiguration 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]

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


五、若有更多详细信息,请在下面提供。



1条回答
  • 2019-11-11 10:06

    是这样的,目前先禁用SleuthHystrixAutoConfiguration试试

    后期要等seata官方出兼容的方案

    2 讨论(1)
提交回复