您好,登錄后才能下訂單哦!
這篇文章主要介紹“怎么解決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報錯問題”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續學習更多相關知識,請繼續關注億速云網站,小編會繼續努力為大家帶來更多實用的文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。