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-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/ 可以看到項目都啟動成功了

運行結果


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM