启动报错:
no available service 'null' found, please make sure registry config correct
no available service 'default' found, please make sure registry config correct
改4个地方
- 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}