79166031

Date: 2024-11-07 10:35:56
Score: 1
Natty:
Report link

Auto-configuration of RestClient was added by spring in 4.1.0 version of spring-cloud-commons dependency. Reference - https://github.com/spring-cloud/spring-cloud-commons/issues/1293

So, If you add @LoadBalanced annotation for RestClient bean it will just be ignored.

Note- Use 'LoadBalancerInterceptor' or 'RetryLoadBalancerInterceptor' whichever needed.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @LoadBalanced
  • Low reputation (1):
Posted by: Trilokynath wagh