添加seata分布式事务启动服务失败

Blade 已结 1 1499
jues
jues 剑圣 2020-10-16 11:23

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

1. seata对接微服务,启动服务失败

2. 

3.


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

期待,可以正常对接微服务

实际上在启动的时候发现seataHystrixConcurrencyStrategy对象在启动创建的时候冲突了,导致服务启动失败

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

bladex

2.5.1

linux


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

image.png

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

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

2020-10-16 11:18:40.127 ERROR [ihp-order,,,] 7151 --- [ fileListener_1] io.seata.config.FileConfiguration        : fileListener execute error:org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@d816dde has not been refreshed yet

Process finished with exit code 1


1条回答
  •  zhx1994
    zhx1994 (最佳回答者)
    2020-10-16 15:09

    按文档配置seata服务

    X}B0EF]P2I)IT8_1{21K[O3.png

    0 讨论(1)
提交回复