dobbo 集成seata框架

seata server:

#AT 模式
#seata 管理面板 http://192.168.xx:7091
seata:
  enabled: true
  application-id: oa-server
  tx-service-group: oa-server-group
  enable-auto-data-source-proxy: true
  client:
    support:
      spring:
        datasource-autoproxy: true
  registry:
    type: zk
    zk:
      server-addr: 192.168.xx:2181
      connect-timeout: 50000
      session-timeout: 60000
      username: ""
      password: ""
  service:
    grouplist:
      default: 192.168.xx:8091
    vgroup-mapping:
      oa-server-group: default

client:

#AT 模式
#seata 管理面板 http://192.168.xx:7091
seata:
  enabled: true
  application-id: oa-client-9999
  tx-service-group: oa-client-9999-group
  enable-auto-data-source-proxy: true
  client:
    support:
      spring:
        datasource-autoproxy: true
  registry:
    type: zk
    zk:
      server-addr: 192.168.xx:2181
      connect-timeout: 50000
      session-timeout: 60000
      username: ""
      password: ""
  service:
    grouplist:
      default: 192.168.xx:8091
    vgroup-mapping:
      oa-client-9999-group: default

seata代码要写在
servver端
注解用
@GlobalTransactional

特色功能:

0

版权声明 ▶ 本网站名称:我的学习笔记
▶ 本文链接:https://ooolo.net/article/396.html
▶ 本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长进行核实删除。
▶ 转载本站文章需要遵守:商业转载请联系站长,非商业转载请注明出处!!!

none
最后修改于:2024年01月29日 09:11

添加新评论

icon_mrgreen.pngicon_neutral.pngicon_twisted.pngicon_arrow.pngicon_eek.pngicon_smile.pngicon_confused.pngicon_cool.pngicon_evil.pngicon_biggrin.pngicon_idea.pngicon_redface.pngicon_razz.pngicon_rolleyes.pngicon_wink.pngicon_cry.pngicon_surprised.pngicon_lol.pngicon_mad.pngicon_sad.pngicon_exclaim.pngicon_question.png