这篇文章主要将seata 提供的demo中 seata-samples\springcloud-eureka-feign-mybatis-seata项目运行起来html
一个高性能的分布式事务解决方案,易于和微服务架构整合git
https://github.com/seata/seatagithub
https://github.com/seata/seata/wiki/Home_Chinesespring
下载sql
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.gzmybatis
seata-server搭建能够参考别人的这篇博客架构
http://www.javashuo.com/article/p-mnwsxzdc-eq.htmlapp
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-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
仓库地址
https://github.com/seata/seata-samples
demo建表SQL
在每一个项目下
启动demo
修改三个demo项目数据库密码
seata-samples\springcloud-eureka-feign-mybatis-seata\xxx\src\main\resources\application.yml
打开http://localhost:8761/ 能够看到项目都启动成功了
运行结果