Caused by: com.netflix.client.ClientException: Load balancer does not have available server for client: zuul-server The
solution is to add in the pom file
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-eureka</artifactId> </dependency>
What I tested is to call the eureka registered service through zuul. The online articles are incomplete and fill in the missing parts. You can refer to the online article and add this part to call the eureka service through zuul.
My example code is on git, not much to say that everything is in the code.
Address: https://github.com/leozhang123/springcloud-example.git