|
最近在研究seata,发现seata jpa工程里springboot2.0.0 Release, 想升级到springboot2.2
但是发现一个问题
no available service 'null' found, please make sure registry config correct
看了好久,很多原因是
file.config 文件
vgroupMapping.storage-service = "default"
application.properties 文件
spring.cloud.alibaba.seata.tx-service-group="storage-service"
很多网上都说忘了配置, 其实这个版本springboot2.0已经跑通了,一直报这个错误肯定不是这个原因
于是就开始找找
报错信息如下
2020-12-19 22:20:33.311 ERROR [storage-service,,,] 11584 --- [imeoutChecker_1] i.s.c.r.netty.NettyClientChannelManager : no available service 'null' found, please make sure registry config correct
2020-12-19 22:20:33.328 WARN [storage-service,,,] 11584 --- [nfigOperate_2_2] io.seata.config.FileConfiguration : Could not found property service.vgroup_mapping."storage-service", try to use default value instead.
2020-12-19 22:20:33.328 WARN [storage-service,,,] 11584 --- [nfigOperate_2_2] io.seata.config.FileConfiguration : Could not found property service.vgroup_mapping."storage-service", try to use default value instead.
2020-12-19 22:20:33.328 ERROR [storage-service,,,] 11584 --- [imeoutChecker_2] i.s.c.r.netty.NettyClientChannelManager : no available service 'null' found, please make sure registry config correct
2020-12-19 22:20:33.911 INFO [storage-service,,,] 11584 --- [ main] o.s.cloud.commons.util.InetUtils : Cannot determine local hostname
2020-12-19 22:20:34.045 INFO [storage-service,,,] 11584 --- [ main] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService
于是网上看 Could not found property service.vgroup_mapping."storage-service", try to use default value instead.
但是配置文件是
vgroupMapping.storage-service
vgroup_mapping ???vgroupMapping.storage-service
不知道什么时候vgroupMapping 改成vgroup_mapping
于是按错误推理
vgroup_mapping.storage-service = "default" 改成这样的,就可以了
|