我是靠谱客的博主 瘦瘦星星,这篇文章主要介绍Spring Cloud 报错 There was a problem with the instance info replicator,现在分享给大家,希望可以做个参考。

Spring Boot版本:2.3.4.RELEASE
Spring Cloud版本:Hoxton.SR8

一、问题

配置 Spring Cloud 后,启动项目报错:

There was a problem with the instance info replicator

二、解决方法

方法一:
禁止将自己(注册中心)作为客户端

### 关闭客户端配置
eureka.client.register-with-eureka=false
eureka.client.fetch-registry=false

方法二:
修改命名规则,尝试将驼峰命名改成短横线,或将短横线改成驼峰命名,如下:(将 default-zone 改成 defaultZone)

eureka.client.service-url.defaultZone=http://${eureka.instance.hostname}:${server.port}/eureka/

方法三:
检查 maven 的依赖包,重新加载依赖,可以尝试 clean 和 install 是否正常。

最后

以上就是瘦瘦星星最近收集整理的关于Spring Cloud 报错 There was a problem with the instance info replicator的全部内容,更多相关Spring内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(97)

评论列表共有 0 条评论

立即
投稿
返回
顶部