When I use a custom inheritance FeignBlockingLoadBalancerClient client, complains can't find the instance
Closed this issue · 1 comments
Describe the bug
Please provide details of the problem, including the version of Spring Cloud that you
are using.
I want to decide before I actually call the target service that if the request is a mock request that I've labeled, then I don't need to call the target service and just return a mock response, So I defined a CustomFeignBlockingLoadBalancerClient inherit FeignBlockingLoadBalancerClient, but the actual runtime error truly, unable to find the target service
SpringCloud 2024.0.0 ,SpringBoot 3.4.0
Perhaps by design? But I wonder how I can do that if I want to return my own simulated data directly before making an HTTP request? Because I want to make a mock platform
Sample
If possible, please provide a test case or sample application that reproduces
the problem. This makes it much easier for us to diagnose the problem and to verify that
we have fixed it.
thank you resolved