xueyunlong123 / springcloudstudy

1 stars 0 forks source link

microservice-api-gateway 配置问题 #1

Open ipandage opened 6 years ago

ipandage commented 6 years ago

bootstrap.yml

eureka: instance: hostname: gateway client: serviceUrl: defaultZone: http://localhost:8761/eureka/ register-with-eureka: false fetch-registry: false

register-with-eureka: 如果设置成false ,zuul发现不了 microservice-provider-user 会报 Load balancer does not have available server for client

xueyunlong123 commented 6 years ago

这里是gateway的配置,我不想让注册中心来发现gateway服务。Load balancer does not have available server for client是因为你没有起 microservice-provider-user服务吧。 我写一个新项目:https://github.com/xueyunlong123/scaff 更有参考的价值,欢迎star!