Spring cloud face shock absorber not working

the same code with spring boot version 1.3.8.RELEASE and the cloud version of "Brixton.SR" is working correctly. but "1.5.2.RELEASE" and "Dalston.RC1" do not work.

exceptions

HTTP status 500 - request processing failed; nested exception is java.lang.RuntimeException: com.netflix.client.ClientException: load balancing does not have an available server for the client: math-service

+5
source share
1 answer

OK, you can add the following to your application.properties, then it works.

feign.hystrix.enabled=true

See the Dalston release note and Disable HystrixCommands for FeignClients. By default , Feign clients no longer migrate methods in the default Hystrix commands. You must have Hystrix on the way to the classes, and set feign.hystrix.enabled = true so that Feign automatically wraps the methods in the Hystrix commands.

+8
source

Source: https://habr.com/ru/post/1266067/


All Articles