清石小猿 2022-05-30 14:49 采纳率: 100%
浏览 68
已结题

SpringCloud2021.0.1 + SpringCloud 阿里巴巴 2021.0.1.0配置Seata后出现找不到事务分组

问题遇到的现象和发生背景

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


我的解答思路和尝试过的方法

网上百度到的都试了一下,没有解决问题,到现在还找不到问题所在

我想要达到的结果

我的解答思路和尝试过的方法
我想要达到的结果
  • 写回答

1条回答 默认 最新

  • 皮蛋不吃粥 2022-05-30 14:58
    关注

    seataServer.properties 贴出来看看 或者SL我

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 6月7日
  • 已采纳回答 5月30日
  • 创建了问题 5月30日

悬赏问题

  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条