nacos成功注册却报异常(http://localhost:8848)

报错日志:

[NACOS HTTP-POST] The maximum number of tolerable server reconnection errors has been reached

[fixed-localhost_8848] [check-update] get changed dataId exception

[NACOS ConnectException httpPost] currentServerAddr: http://localhost:8848, err : Connection refused: connect

 

情况:

项目配置的服务器的nacos,项目也成功注册了,却抛出很多错误日志包含localhost:8848

 

分析原因:

application配置未能在项目启动时及时生效

 

解决方式:

application生效不及时,那就另生成一个bootstrap放nacos配置

posted @ 2024-03-08 09:37  东方燚明  阅读(1050)  评论(1编辑  收藏  举报