02-Seata客户端全局事务配置与实现

124 阅读1分钟

02-Seata客户端全局事务配置与实现

根据 官方文档

这也是 1.4 和 1.5 的区别。

github.com/seata/seata…

yml 配置

seata:
  enabled: true

注意如下默认配置,我们需要定制化修改:

seata:
  enabled: true
  tx-service-group: javaedge_tx_group
  service:
    vgroup-mapping:
      javaedge_tx_group: SEATA_GROUP
    grouplist:
      SEATA_GROUP: localhost:8091
  config:
    nacos:
      server-addr: localhost:8848
      username: nacos
      password: nacos
  registry:
    nacos:
      server-addr: localhost:8848
      username: nacos
      password: nacos

还没完:

  config:
    nacos:
      server-addr: localhost:8848
      username: nacos
      password: nacos
  registry:
    nacos:
      server-addr: localhost:8848
      username: nacos
      password: nacos

获取更多干货内容,记得关注我哦。