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