這篇文章主要將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/ 能夠看到項目都啓動成功了
運行結果