啟動(dòng)報(bào)錯(cuò):
no available service 'null' found, please make sure registry config correct
no available service 'default' found, please make sure registry config correct
改4個(gè)地方
- seata的registry.conf
nacos {
application = "serverAddr"
group = "DEFAULT_GROUP" // 保持和其他服務(wù)的group一樣
// ...
}
2.項(xiàng)目中的配置文件
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}