当前位置:网站首页>【踩坑】nacos注册一直连接localhost:8848,no available server
【踩坑】nacos注册一直连接localhost:8848,no available server
2022-07-07 05:56:00 【梦及海深@无】
今天在给整理阿里巴巴微服务时发现一个问题,启动的时候报错no available server,然后发现一直连接的localhost:8848,但是我的配置中是配置的其他地址,并没有在本地启动nacos,具体错误信息如图
百度了很多方法,什么nacos的依赖版本问题,nacos的discovery和config依赖都存在的话,配置里也必须同时配置,或者加入nacos-client依赖,或则加入bootstrap的依赖等等,都没有什么乱用,然后我突然发现一个问题,我的配置文件名称是application.yaml,而配置文件中,bootstrap配置文件的优先级是高于application的,会不会是springboot优先去加载了bootstrap配置文件,然后使用的是springboot内嵌的bootstarp配置文件,里面配置的是localhost:8848这个地址,导致了服务一直去连接localhost,no available server,然后我就把配置文件名称改为了bootstrap.yaml,问题搞定!
边栏推荐
- SSM 整合
- 【微信小程序:缓存操作】
- Learn how to compile basic components of rainbow from the source code
- Snyk 依赖性安全漏洞扫描工具
- 为什么要选择云原生数据库
- Splunk子查询模糊匹配csv中字段值为*
- 说一个软件创业项目,有谁愿意投资的吗?
- Input and output of floating point data (C language)
- 23 Chengdu instrument customization undertaking_ Discussion on automatic wiring method of PCB in Protel DXP
- 打通法律服务群众“最后一公里”,方正璞华劳动人事法律自助咨询服务平台频获“点赞”
猜你喜欢

Installation and configuration of PLSQL

Appeler l'interface du moteur de création du service multimédia de jeu Huawei renvoie le Code d'erreur 1002, le message d'erreur: les paramètres sont l'erreur

Implement your own dataset using bisenet

Splunk子查询模糊匹配csv中字段值为*

Data type - floating point (C language)

Practice of combining rook CEPH and rainbow, a cloud native storage solution

Opencv learning note 3 - image smoothing / denoising

iptables 之 state模块(ftp服务练习)

为什么要选择云原生数据库

Rsync remote synchronization
随机推荐
[Chongqing Guangdong education] organic electronics (Bilingual) reference materials of Nanjing University of Posts and Telecommunications
字符串操作
一种适用于应用频繁测试下快速查看Pod的日志的方法(grep awk xargs kuberctl)
[untitled]
POJ - 3784 running medium
Virtual address space
Opencv learning note 5 - gradient calculation / edge detection
The field value in Splunk subquery fuzzy matching CSV is*
Deit learning notes
POJ - 3616 Milking Time(DP+LIS)
go写一个在一定时间内运行的程序
[Yu Yue education] basic reference materials of electrical and electronic technology of Nanjing Institute of information technology
POJ - 3784 Running Median(对顶堆)
IELTS review progress and method use [daily revision]
Lua programming learning notes
IP guard helps energy enterprises improve terminal anti disclosure measures to protect the security of confidential information
Interface as a parameter (interface callback)
如何理解分布式架构和微服务架构呢
Tuowei information uses the cloud native landing practice of rainbow
What is the method of manual wiring in PCB design in 22protel DXP_ Chengdu electromechanical Development Undertaking