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

南笙酒味 提交于 2020-04-25 17:01:57

说明

这篇文章主要将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/ 可以看到项目都启动成功了

运行结果

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!