spring-cloud-alibaba zipkin seata HystrixSecurityAutoConfiguration 冲突

30byixjq  于 4个月前  发布在  Spring
关注(0)|答案(2)|浏览(131)

我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。
We recommend using English. If you are non-native English speaker, you can use the translation software.
zipkin seata HystrixSecurityAutoConfiguration 冲突

Description:

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]

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 Component
spring-cloud-starter-alibaba-seata

Describe what problem you have encountered
整合seata 和 zipkin 项目后 HystrixSecurityAutoConfiguration 有冲突,我该怎么设置?

Describe what information you have read
eg. I have read the reference doc of Sentinel

g0czyy6m

g0czyy6m1#

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

htrmnn0y

htrmnn0y2#

Pls try to do it as @JustinQiong said.

相关问题