当前位置:网站首页>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
导入完成
再次重启
完美!
边栏推荐
- dumi 搭建文档型博客
- C language learning -- data storage in memory
- Interior design style type, rendering 100 invitation code [1a12]
- How to break the black screen after cleaning the dust and applying silicone grease on the laptop?
- Review of MySQL (VIII): Transactions
- Topic 66: input array, exchange the largest element with the first element, exchange the smallest element with the last element, and output array.
- Gospel of audio and video developers, rapid integration of AI dubbing capability
- VirtualLab基础实验教程-5.泊松亮斑
- Lenovo responded that there are too many and too messy notebooks: it is now the product adjustment period and will be divided into three series of digital /air/ pro in the future
- Title 68: there are n integers, so that the previous numbers are moved backward m positions, and the last m numbers become the first m numbers
猜你喜欢

leetcode:5289. 公平分发饼干【看数据范围 + dfs剪枝】

收获满满的下午

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

kali局域网ARP欺骗(arpspoof)并监听(mitmproxy)局域内其它主机上网记录

在思科模擬器Cisco Packet Tracer實現自反ACL

Review of MySQL (VII): use of tables

Review of MySQL (I): go deep into MySQL

C语言学习——数据在内存中的存储

Gd32f4xx controls dgus variable display

基于Halcon的螺栓螺丝部分划痕、腐蚀缺陷检测
随机推荐
leetcode:5289. 公平分发饼干【看数据范围 + dfs剪枝】
Can tonghuashun open an account? Can tonghuashun directly open the security of securities companies on the app
六石认知学:大脑的显速与潜速
SCI Writing - Results
CEPH deploy offline deployment of CEPH cluster and error reporting FAQ
Gd32f4xx controls dgus touch keys
面试题总结
232-CH579M学习开发-以太网例程-TCP服务器(项目应用封装,局域网或广域网测试)
Typescript advanced type (2)
看不懂Kotlin源码?从Contracts 函数说起~
Review of MySQL (3): query operation
JS sum of two numbers
leetcode:6095. 强密码检验器 II【简单模拟 + 不符合直接False】
Arrays in JS (including leetcode examples) < continuous update ~>
Problems that the sap Spartacus e-commerce cloud UI shipping method does not display in the unit test environment
实验10 Bezier曲线生成-实验提高-控制点生成B样条曲线
In 2021, the global spice and seasoning revenue is about 18720million US dollars, and it is expected to reach 25960million US dollars in 2028
Title 37: sorting 10 numbers
Review of MySQL (VII): use of tables
VirtualLab basic experiment tutorial -4 Single slit diffraction