Watch 2 Star 1 Fork 1

lalala / spring-cloud-seata-mybatis-plusApache-2.0

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
spring-cloud集成 分布式事务框架 seata和mybatis-plus示例 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

seata mybatis plus demo

介绍

依赖

依赖 版本
Spring Boot 2.2.2.RELEASE
Spring Cloud Hoxton.SR1
spring-cloud-alibaba 2.1.1.RELEASE
Mybatis Plus 3.3.0
seata 0.9.0
seata-server 1.0.0

运行项目

  1. ide需要安装lombok插件
  2. 新建两个数据库,执行sql.sql文件
  3. 修改seata-userseata-account项目的application.yml数据库配置和nacos配置
  4. 修改seata-userseata-account项目的registry.conf的配置
  5. 下载并启动nacoshttps://github.com/alibaba/nacos/releases
  6. 下载seata-server
  7. 修改config/file.conf和config/registry.conf
    • config/file.conf这里的vgroup_mapping.my_test_tx_group = "default"要和application.yml里的 spring.cloud.alibaba.seata.tx-service-group一致 file.conf.png
    • 修改config/registry.conf的nacos地址 reg.png
  8. 启动seata-server,window执行bin/seata-server.bat,linux或mac执行bin/seata-server.bat
  9. 启动seata-accountseata-user服务
  10. 浏览器访问http://localhost:7788/index.html即可查看效果

相关文档

Comments ( 0 )

Sign in for post a comment

1
https://gitee.com/youthdream/spring-cloud-seata-mybatis-plus.git
git@gitee.com:youthdream/spring-cloud-seata-mybatis-plus.git
youthdream
spring-cloud-seata-mybatis-plus
spring-cloud-seata-mybatis-plus
master

Help Search