Open 1011178l opened 6 years ago
After I did a basic debug, I find the allServerList in the class BaseLoadBalancer is null. Not sure if this info is useful.
for your zuul application.yml fetch the registry as below
eureka:
client:
registerWithEureka: false
fetchRegistry: true
@senyoAsamoah Thanks. Can I manully define route rather than use fetchRegistry?
You can manually define, just use the url field in the routes definition for zuul
hi,I have the same question to yours.do you haven solved it ,please?
I got it ! you could check out your maven file that must imput the "spring-cloud-starter-netflix-eureka-client",not the "spring-cloud-netflix-eureka-client".because the "spring-cloud-starter-netflix-eureka-client" include ribbon-eureka,but the other one is not . with ribbon-eureka ,it can do the balance.^_^
for your zuul application.yml fetch the registry as below
eureka: client: registerWithEureka: false fetchRegistry: true
That solved my problem.
Configurations Basic Eureka Client
only set this -> eureka.client.enabled=false in the microservice That solved my problem.
for your zuul application.yml fetch the registry as below
eureka: client: registerWithEureka: false fetchRegistry: true
this solved my problem, too.
I got it ! you could check out your maven file that must imput the "spring-cloud-starter-netflix-eureka-client",not the "spring-cloud-netflix-eureka-client".because the "spring-cloud-starter-netflix-eureka-client" include ribbon-eureka,but the other one is not . with ribbon-eureka ,it can do the balance.^_^
ncie,thank you
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
您好,您的邮件已收到,谢谢!
I noticed that many people asked the same question, But I tried their ways, but my problem is still there.
I use spring-boot + eureka + zuul,
spring.cloud.version: 2.0.2.RELEASE
Here is the Eureka server:
and the application.yml for eureka server:
Then here is the Zuul server:
and the application.yml for Zuul
and a microservice file-management:
application.yml
I have this problem for a couple of days, Any help would be great appreciated!