seata demo之springcloud-eureka-feign-mybatis-seata

说明

这篇文章主要将seata 提供的demo中 seata-samples\springcloud-eureka-feign-mybatis-seata项目运行起来

seata

一个高性能的分布式事务解决方案,易于和微服务架构整合

github

https://github.com/seata/seata

中文wiki

https://github.com/seata/seata/wiki/Home_Chinese

seata-server运行

下载

https://github.com/seata/seata/releases/download/v0.9.0/seata-server-0.9.0.zip

https://github.com/seata/seata/releases/download/v0.9.0/seata-server-0.9.0.tar.gz

 

seata-server搭建可以参考别人的这篇博客

https://www.cnblogs.com/wintersoft/p/10548177.html

 

seata-server建表SQL

seata-server-0.9.0\seata\conf\db_store.sql

seata-server-0.9.0\seata\conf\db_undo_log.sql

seata demo之springcloud-eureka-feign-mybatis-seata

 

 

修改数据库名 账号密码 seata-server-0.9.0\seata\conf\nacos-config.txt

修改seata-server-0.9.0\seata\conf\registry.conf 将type = "file"改为 type = "eureka"

 

启动    (启动Euraka->启动seata-server)

启动demo 提供的eureka

启动seata-server

seata-server-0.9.0\seata\bin\seata-server.sh

 

demo

仓库地址

https://github.com/seata/seata-samples

 

demo建表SQL

在每个项目下

seata demo之springcloud-eureka-feign-mybatis-seata

 

 

启动demo

修改三个demo项目数据库密码

seata-samples\springcloud-eureka-feign-mybatis-seata\xxx\src\main\resources\application.yml

seata demo之springcloud-eureka-feign-mybatis-seata

 

打开http://localhost:8761/ 可以看到项目都启动成功了

seata demo之springcloud-eureka-feign-mybatis-seata

运行结果

seata demo之springcloud-eureka-feign-mybatis-seata

seata demo之springcloud-eureka-feign-mybatis-seata

上一篇:Seata实战-分布式事务TCC, 2PC原理简介及demo上手


下一篇:C#RichTextBox Find()错误?