spring cloud Bug之was unable to refresh its cache! status = Cannot execute request on any known server
可能原因:
1.application.yml
server:
port: 10001
spring:
application:
name: microservice-consumer-movie
eureka:
instance:
hostname:
prefer-ip-address: true
client:
serviceUrl:
defaultZone: http://user:123@localhost:8761/eureka/
注意:
serviceUrl不能写成service-url
defaultZone不能写成default-zone
要不然可能会出现未知的错误.改成我上面这样就行了.
defaultZone的值需要改成你自己的eureka注册中心地址.
2.此问题或许可能出现其他的异常,所以要注意.
2019-08-19修改:
描述不清楚.