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