关于seata no available service 'null' found, please make sure registry config correct的一个大坑

今天在使用seata时,启动一直报错

 no available service 'null' found, please make sure registry config correct

在检查了nacos的配置中心和服务中心后没有异常,可是一直找不到服务

 

 这是client的配置

最后研究了半天时间后,终于明白,要在client端配置

seata.tx-service-group: xxx
并且在配置中心添加:
service.vgroupMapping.xxx 内容是default
比如我在client配置
seata.tx-service-group: my_test_group
,则对应的 配置中心需要有一条配置
service.vgroupMapping.my_test_group 内容是default
具体原因不详 以后再来看看
运行sh文件命令
sh nacos-config.sh  -h 150.158.197.208 -p 8848 -g SEATA_GROUP -u nacos -w nacos
客户端例子git仓库

NewSeata: seata客户端的一次模拟实战,分为下单模块,用户模块,商超模块 (gitee.com)
undo_log在tm端
其它三个在tc端


posted @ 2022-07-21 21:46  dronff  阅读(2169)  评论(0)    收藏  举报