Seata 整合学习完成

This commit is contained in:
2023-08-18 23:43:35 +08:00
parent 2ee2961731
commit 401f58e46f
26 changed files with 178 additions and 110 deletions

View File

@@ -17,17 +17,23 @@ spring:
# 将ephemeral修改为false表示非临时实例用于持续监控
ephemeral: false
cluster-name: Chengdu
namespace: dd668135-0bfe-489f-ab2b-24aefb21d156
loadbalancer:
nacos:
enabled: true
sentinel:
transport:
# 添加监控页面地址即可
dashboard: localhost:8858
# 关闭Context收敛这样被监控方法可以进行不同链路的单独控制
web-context-unify: false
block-page: /blocked
feign:
circuitbreaker:
enabled: true
seata:
# 注册
registry:
# 使用Nacos
type: nacos
nacos:
# 使用Seata的命名空间这样才能正确找到Seata服务由于组使用的是SEATA_GROUP配置默认值就是就不用配了
namespace: c0495138-b5b3-440d-8f1c-dc8cc9ba5fbc
username: nacos
password: nacos
# 配置
config:
type: nacos
nacos:
namespace: c0495138-b5b3-440d-8f1c-dc8cc9ba5fbc
username: nacos
password: nacos