集成seata1.3.0遇到的一些问题

启动报错:
no available service 'null' found, please make sure registry config correct
no available service 'default' found, please make sure registry config correct

改4个地方

  1. seata的registry.conf
  nacos {
    application = "serverAddr"
    group = "DEFAULT_GROUP" // 保持和其他服务的group一样
    // ...  
}

2.项目中的配置文件
registry.conf

  nacos {
    application = "serverAddr"
    // ...
}

file.conf

service {
  #transaction service group mapping
  vgroupMapping.${spring.application.name} = "default"
  // ...
}

application.yml

spring:
    alibaba:
      seata:
        tx-service-group: ${spring.application.name}

推荐阅读更多精彩内容