首页 > 编程知识 正文

seata实现分布式事务,seata分布式事务实例

时间:2023-05-05 13:38:31 阅读:270452 作者:3022

1.参考链接:https://github.com/seata/seata-samples/tree/master/springcloud-eureka-feign-mybatis-seata;

2.代码链接:https://github.com/kickTec/springCloudDemo/tree/transaction-seate

3.关键组件:

eureka、seate-0.8.0服务器、微服务1(hello)、微服务2(feign-consumer)

spring boot:2.1.8.RELEASE

spring cloud:Greenwich.SR2

4.seate服务器参数(主要指定host,多个网卡自动绑定IP有时不对):

@Parameter(names = "--help", help = true)

private boolean help;

@Parameter(names = {"--host", "-h"}, description = "The ip to register to registry center.", order = 1)

private String host;

@Parameter(names = {"--port", "-p"}, description = "The port to listen.", order = 2)

private int port = SERVER_DEFAULT_PORT;

@Parameter(names = {"--sto

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。