更新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
@@ -4,7 +4,15 @@ server:
spring:
application:
name: business-service
main:
allow-bean-definition-overriding: true
cloud:
nacos:
discovery:
server-addr: 192.168.28.130:8848
server-addr: 192.168.28.130:8848
username: nacos
password: nacos
ribbon:
ConnectTimeout: 100000
ReadTimeout: 1000000
OkToRetryOnAllOperations: false
@@ -1,26 +0,0 @@
registry {
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
type = "nacos"
nacos {
serverAddr = "192.168.28.130"
namespace = "public"
cluster = "default"
}
file {
name = "file.conf"
}
}
config {
# file、nacos 、apollo、zk、consul、etcd3
type = "nacos"
nacos {
serverAddr = "192.168.28.130"
namespace = "public"
cluster = "default"
}
file {
name = "file.conf"
}
}