怎么解决eureka中的Rootname'timestamp'doesnotmatchexpected报错问题

这篇文章主要介绍“怎么解决eureka中的Root name 'timestamp' does not match expected报错问题”,在日常操作中,相信很多人在怎么解决eureka中的Root name 'timestamp' does not match expected报错问题问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”怎么解决eureka中的Root name 'timestamp' does not match expected报错问题”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

站在用户的角度思考问题,与客户深入沟通,找到兴安网站设计与兴安网站推广的解决方案,凭借多年的经验,让设计与互联网技术结合,创造个性化、用户体验好的作品,建站类型包括:成都网站设计、成都网站制作、企业官网、英文网站、手机端网站、网站推广、域名与空间、网络空间、企业邮箱。业务覆盖兴安地区。

WARN  c.n.d.s.transport.decorator.RetryableEurekaHttpClient
                                                - Request execution failed with message: java.net.ConnectException: 拒绝连接
2019-07-22 10:46:14.402 [DiscoveryClient-HeartbeatExecutor-0] ERROR com.netflix.discovery.DiscoveryClient
                                                - DiscoveryClient_PATH-SERVICE/app04:path-service:8830 - was unable to send heartbeat!
com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Root name 'timestamp' does not match expected ('instance') for type [simple type, class com.netflix.appinfo.InstanceInfo]
 at [Source: (com.sun.jersey.client.apache4.ApacheHttpClient4Handler$HttpClientResponseInputStream); line: 1, column: 2]
        at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)

解决:

  • eureka.client.serviceUrl.defaultZone=http://eureka:eureka@localhost:8761/ 改为

  • eureka.client.serviceUrl.defaultZone=http://eureka:eureka@localhost:8761/eureka

  • 注意,浏览器访问不需要eureka,但配置必须要!

到此,关于“怎么解决eureka中的Root name 'timestamp' does not match expected报错问题”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注创新互联网站,小编会继续努力为大家带来更多实用的文章!

文章名称:怎么解决eureka中的Rootname'timestamp'doesnotmatchexpected报错问题
转载来于:https://www.cdcxhl.com/article18/pdpodp.html

成都网站建设公司_创新互联,为您提供网站导航品牌网站设计商城网站网站内链网站营销网站收录

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都做网站