nacos-group / nacos-examples

Nacos Examples
Apache License 2.0
950 stars 1.47k forks source link

在bootstrap.properties 中配置spring.cloud.nacos.discovery.server-addr=x.x.x.x:8848 失效 #59

Closed erdengzhazha closed 3 years ago

erdengzhazha commented 3 years ago

环境: Springboot 2.3.2 SpringCloudAlibaba 2.2.5

报错提示: [2021-05-15 23:37:32,812] [ERROR] [com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:166)] - [NACOS ConnectException httpPost] currentServerAddr: http://localhost:8848, err : Connection refused (Connection refused) [2021-05-15 23:37:32,813] [ERROR] [com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:166)] - [NACOS ConnectException httpPost] currentServerAddr: http://localhost:8848, err : Connection refused (Connection refused) [2021-05-15 23:37:32,814] [ERROR] [com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:166)] - [NACOS ConnectException httpPost] currentServerAddr: http://localhost:8848, err : Connection refused (Connection refused) [2021-05-15 23:37:32,815] [ERROR] [com.alibaba.nacos.client.config.http.ServerHttpAgent.httpPost(ServerHttpAgent.java:166)] - [NACOS ConnectException httpPost] currentServerAddr: http://localhost:8848, err : Connection refused (Connection refused) [2021-05-15 23:37:32,815] [ERROR] [com.alibaba.nacos.client.config.impl.ClientWorker.checkUpdateConfigStr(ClientWorker.java:454)] - [fixed-localhost_8848] [check-update] get changed dataId exception java.net.ConnectException: [NACOS HTTP-POST] The maximum number of tolerable server reconnection errors has been reached

Debug发现 localhost:8848的加载优先级比自己配置的快。。。。

erdengzhazha commented 3 years ago

希望尽早解决吧~~~这是个大问题!!!! 不好配置外部nacos,还玩个奶子!!!

erdengzhazha commented 3 years ago

解决了,自己的错误