美文网首页
seata +eureka+springBoot+Feign搭建

seata +eureka+springBoot+Feign搭建

作者: Happyday_5fce | 来源:发表于2021-01-01 15:50 被阅读0次

一:搭建seata-server

   1.下载 seata-server  

      https://github.com/seata/seata/tree/1.4.0

   2.修改file.confi和registry.conf .  

                   路径如下

             2-1.file.conf中的修改内容如下。

              3-1.修改registry 文件

           3.创建 seata 数据库

         TC 全局事务会话信息由3块内容构成,全局事务-->分支事务-->全局锁,对应表global_table、    branch_table、lock_table。表结构

二:搭建 seata-client

      1.下载 seata-client 

              https://github.com/lightClouds917/springcloud-eureka-feign-mybatis-seata-v100

              修改每个tm的application.yml.

        2.每个事务参与方都需要建undo_log

           3.jar包

            4.tm需要注解.

                               @GlobalTransactional 注解在业务方法上:

相关文章

网友评论

      本文标题:seata +eureka+springBoot+Feign搭建

      本文链接:https://www.haomeiwen.com/subject/xtmbnktx.html