更新seata-demo的代码,适配seata1.3

This commit is contained in:
zlt2000
2020-07-20 22:04:40 +08:00
parent 9c53c5eeac
commit b1fc258acb
14 changed files with 164 additions and 135 deletions
@@ -1,6 +1,16 @@
spring:
cloud:
alibaba:
seata:
# seata 服务分组,要与服务端nacos-config.txt中service.vgroup_mapping的后缀对应,默认是${spring.application.name}-fescar-service-group
tx-service-group: business-service-group
seata:
tx-service-group: test_tx_service_group
config:
type: nacos
nacos:
serverAddr: ${spring.cloud.nacos.server-addr}
group: SEATA_GROUP
username: nacos
password: nacos
registry:
type: nacos
nacos:
server-addr: ${spring.cloud.nacos.server-addr}
group: SEATA_GROUP
username: nacos
password: nacos