记录一下这个有点坑的问题:
no available service ‘null’ found, please make sure registry config correct
springboot 2.2.9
springcloud alibaba 2.2.1
seata 1.3
nacos 1.3.2
按照最新的seata文档搭建好后一直报这个错,根据网上的解决方案检查注册中心配置没问题
registry.conf
registry {
# file 、nacos 、eureka、redis、zk、consul、etcd3、sofa
type = "nacos"
nacos {
application = "server-seata"
serverAddr = "xxx:8848"
group = "DEFAULT_GROUP"
namespace = "cloud-platform-dev"
cluster = "default"
username = "nacos"
password = "nacos"
}
}
config {
# file、nacos 、apollo、zk、consul、etcd3
type = "nacos"
nacos {
serverAddr = "xxxx:8848"
group = "DEFAULT_GROUP"
namespace = "cloud-platform-dev"
username = "nacos"
password = "nacos"
}
}
file.conf
store {
## store mode: file、db、redis
mode = "db"
## database store property
db {
## the implement of javax.sql.DataSource, such as DruidDataSource(druid)/BasicDataSource(dbcp)/HikariDataSource(hikari) etc.
datasource = "druid"
##