When I use Spring Cloud LoadBalancer for load balancing, when the consumer calls the provider, injecting RestTemplateBuilder() results in an error: "Cannot execute request on any known server,As follows enter image description here
After I have canceled all the RestTemplate instances, using the following approach, the translation into Chinese would be: enter image description here
After I have canceled all the RestTemplate instances, using the following approach, the translation into Chinese would be,"It's indeed strange that instances can be obtained here, but an error occurs when calling loadBalancerClient.choose("provider");The reason for the error is as follows enter image description here
The Eureka service instances are fine. enter image description here Port 2222 and 3333 are service providers, while port 4444 is the consumer, which is the instance that is supposed to perform load balancing.
springcloud version is latest (2024.0.0)