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

說明

這篇文章主要將seata 提供的demo中 seata-samples\springcloud-eureka-feign-mybatis-seata項目運行起來html

seata

一個高性能的分佈式事務解決方案,易於和微服務架構整合git

github

https://github.com/seata/seatagithub

中文wiki

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

seata-server運行

下載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

 

demo

倉庫地址

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/ 能夠看到項目都啓動成功了

運行結果

相關文章
相關標籤/搜索