问题遇到的现象和发生背景
seata是用的1.4.2版本,cloud alibaba用的是2021.0.1.0
问题相关代码,请勿粘贴截图
common-seata-client.yaml 在nacos上
seata:
enabled: true
application-id: ${spring.application.name}
tx-service-group: walle-frame-seata-service-group
enable-auto-data-source-proxy: true
data-source-proxy-mode: AT
use-jdk-proxy: false
config:
type: nacos
nacos:
#需要和server在同一个注册中心下
serverAddr:
#需要server端(registry和config)、nacos配置client端(registry和config)保持一致
group: SEATA_GROUP
namespace: walle-framework-dev-v2
username: nacos
password: nacos
dataId: seataServer.properties
registry:
type: nacos
nacos:
#需要和server端保持一致,即server在nacos中的名称,默认为seata-server
application: seata-server
serverAddr:
#需要server端(registry和config)、nacos配置client端(registry和config)保持一致
group: SEATA_GROUP
namespace: walle-framework-dev-v2
username: nacos
password: nacos
service:
disable-global-transaction: false
enable-degrade: false
vgroup-mapping: # 事务组与TC服务cluster的映射关系
walle-frame-seata-service-group: default
transport:
shutdown:
wait: 3
thread-factory:
boss-thread-prefix: NettyBoss
worker-thread-prefix: NettyServerNIOWorker
server-executor-thread-prefix: NettyServerBizHandler
share-boss-worker: false
client-selector-thread-prefix: NettyClientSelector
client-selector-thread-size: 1
client-worker-thread-prefix: NettyClientWorkerThread
worker-thread-size: default
boss-thread-size: 1
type: TCP
server: NIO
heartbeat: true
serialization: seata
compressor: none
enable-client-batch-send-request: true
application.yml
spring:
main:
allow-bean-definition-overriding: true
application:
name: walle-frame
profiles:
active: dev-v2
cloud:
nacos:
config:
enabled: true
server-addr:
namespace: walle-framework-dev-v2
file-extension: yaml
shared-configs:
- data-id: common.yaml
refresh: true
- data-id: framework-common.yaml
refresh: true
- data-id: common-seata-client.yaml
refresh: true
- data-id: service.vgroupMapping.walle-frame-seata-service-group
refresh: true
alibaba:
seata:
tx-service-group: walle-frame-seata-service-group
运行结果及报错内容
walle-frame ERROR 2022-05-30 14:18:00.131 TID:N/A PID:20024 logger:io.seata.core.rpc.netty.NettyClientChannelManager thread:[timeoutChecker_1_1] msg:can not get cluster name in registry config 'service.vgroupMapping.walle-frame-seata-service-group', please make sure registry config correct
我的解答思路和尝试过的方法
网上百度到的都试了一下,没有解决问题,到现在还找不到问题所在
我想要达到的结果