当前位置:网站首页>no available service ‘null‘ found, please make sure registry config correct
no available service ‘null‘ found, please make sure registry config correct
2022-06-12 18:40:00 【BackgroundHero】
错误截图

错误描述
这里在spring集成seata时启动报错
错误原因
由于这里设置的配置地址是存储在nacos上的
而在nacos上还没有上传配置
问题解决
先去Gihub下载seata的源文件
下载地址
下载完成后加入如下文件夹中
目录下有一个config.txt文本
复制一份副本
修改confit.txt以下内容
service.vgroupMapping.my_test_tx_group=default
service.disableGlobalTransaction=false
store.mode=db
store.db.datasource=druid
store.db.dbType=mysql
store.db.driverClassName=com.mysql.cj.jdbc.Driver
store.db.url=jdbc:mysql://xxxxx:3306/seata?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowPublicKeyRetrieval=true
store.db.user=root
store.db.password=root
store.db.minConn=5
store.db.maxConn=30
store.db.globalTable=global_table
store.db.branchTable=branch_table
store.db.queryLimit=100
store.db.lockTable=lock_table
store.db.maxWait=5000
我这里的修改内容是根据我的seata配置来的,我的seata是以数据库为存储的,数据库版本为8
以其他方式存储的配置自己的部分即可
这里需要注意的是
service.vgroupMapping后面跟的值需要和seata配置里的tx-service-group值一样
修改完成后进入nacos文件目录
里面有一个nacos-config.sh文件
在本页面右键
打开黑窗口
这个选项安装了git一般就会有
如果没有看看这篇文章
没有Git Bahs
输入代码
sh nacos-config.sh -h nacos地址 -g SEATA-GROUP
其他参数
-h 需要注入的nacos主机ip
-p nacos运行端口号
-g 指定配置文件的分组(选填)
-u nacos账户
-w nacos密码
-t 指定nacos命名空间(选填)
注意:这里的nacos-config.sh和config.txt不在同一个文件夹下,千万不要自作聪明去移动文件位置,直接按命令运行nacos-config.sh即可
执行完成后查看nacos
导入完成
再次重启
完美!
边栏推荐
- Introduction to service grid and istio - continued
- torch.where的新用法(很老但是大家忽略的用法)
- Free measurement of rectangular card [manual drawing ROI] Based on Halcon
- torch. New usage of where (old but ignored usage)
- Pytest automated testing framework (II)
- leetcode:6096. 咒语和药水的成功对数【排序 + 二分】
- leetcode:5289. 公平分发饼干【看数据范围 + dfs剪枝】
- OpenGL shadow implementation (hard shadow)
- 常用问题排查工具和分析神器,值得收藏
- Gospel of audio and video developers, rapid integration of AI dubbing capability
猜你喜欢

Research Report on the overall scale, major manufacturers, major regions, products and applications of Electric Screwdrivers in the global market in 2022

Go init initialization function

基于Halcon的矩形卡片【手动绘制ROI】的自由测量

间隔两个月,我的第二次上榜纪念日【2022.6.2】

GD32F4xx控制DGUS触控按键

GD32F4xx控制DGUS 变量显示

VirtualLab基礎實驗教程-4.單縫衍射

Double non grind one, three side byte, cool. Next time

国内如何下载ProxyStrike

Introduction to service grid and istio - continued
随机推荐
Double non grind one, three side byte, cool. Next time
leetcode:6094. 公司命名【分组枚举 + 不能重复用set交集 + product笛卡儿积(repeat表示长度)】
Gd32f4xx controls dgus touch keys
General differences between SQL server versions released by Microsoft in different periods so far, for reference
OpenGL shadow implementation (soft shadow)
VirtualLab basic experiment tutorial -4 Single slit diffraction
Leetcode topic [string] - Sword pointing offer 05- replace spaces
Problems that the sap Spartacus e-commerce cloud UI shipping method does not display in the unit test environment
torch.where的新用法(很老但是大家忽略的用法)
Use of nexttick function
Leetcode 416. 分割等和子集
2022.6.12-----leetcode. eight hundred and ninety
Adjust CEPH cluster image source
Enhanced version of unit test code displayed by SAP e-commerce cloud Spartacus UI checkout spinner
C language practice (4) -- multiplication and division of large numbers
GD32F4xx 与符合DLT645的电能表通信_2
Summary of static memory allocation and dynamic memory allocation
VirtualLab基础实验教程-5.泊松亮斑
GD32F4xx控制DGUS触控按键
每日一博 - 微服务权限一二事