这篇文章主要将seata 提供的demo中 seata-samplesspringcloud-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.0seataconfdb_store.sql
seata-server-0.9.0seataconfdb_undo_log.sql
修改数据库名 账号密码 seata-server-0.9.0seataconf acos-config.txt
修改seata-server-0.9.0seataconf egistry.conf 将type = "file"改为 type = "eureka"
启动 (启动Euraka->启动seata-server)
启动demo 提供的eureka
启动seata-server
seata-server-0.9.0seatainseata-server.sh
demo
仓库地址
https://github.com/seata/seata-samples
demo建表SQL
在每个项目下
启动demo
修改三个demo项目数据库密码
seata-samplesspringcloud-eureka-feign-mybatis-seataxxxsrcmain esourcesapplication.yml
打开http://localhost:8761/ 可以看到项目都启动成功了
运行结果