From 915dd648f37c55e2e4efa2a3a450b0f39562d87e Mon Sep 17 00:00:00 2001 From: jieyuu <645634619@qq.com> Date: Sat, 24 Aug 2024 16:22:13 +0800 Subject: [PATCH] =?UTF-8?q?seata=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xdclass-common/pom.xml | 19 ++++++++++++++++++- .../src/main/resources/application.yml | 8 ++++++++ .../src/main/resources/application.yml | 8 ++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/xdclass-common/pom.xml b/xdclass-common/pom.xml index e33a545..aeee595 100644 --- a/xdclass-common/pom.xml +++ b/xdclass-common/pom.xml @@ -82,7 +82,6 @@ jedis - org.apache.commons @@ -113,12 +112,30 @@ com.alibaba.cloud spring-cloud-starter-alibaba-nacos-discovery + org.springframework.cloud spring-cloud-starter-openfeign + + + com.alibaba.cloud + spring-cloud-starter-alibaba-seata + + + io.seata + seata-spring-boot-starter + + + + + io.seata + seata-spring-boot-starter + 1.3.0 + + diff --git a/xdclass-coupon-service/src/main/resources/application.yml b/xdclass-coupon-service/src/main/resources/application.yml index 80e541d..02ac841 100644 --- a/xdclass-coupon-service/src/main/resources/application.yml +++ b/xdclass-coupon-service/src/main/resources/application.yml @@ -33,3 +33,11 @@ logging: root: INFO +#seata配置 +seata: + tx-service-group: ${spring.application.name}-group + service: + grouplist: + xdclass: 134.175.219.253:8091 + vgroup-mapping: + xdclass-coupon-service-group: xdclass \ No newline at end of file diff --git a/xdclass-user-service/src/main/resources/application.yml b/xdclass-user-service/src/main/resources/application.yml index b7ea2aa..86b0244 100644 --- a/xdclass-user-service/src/main/resources/application.yml +++ b/xdclass-user-service/src/main/resources/application.yml @@ -51,3 +51,11 @@ minio: bucketName: xdclass-shop-image +#seata配置 +seata: + tx-service-group: ${spring.application.name}-group + service: + grouplist: + xdclass: 134.175.219.253:8091 + vgroup-mapping: + xdclass-user-service-group: xdclass \ No newline at end of file