Last active
August 29, 2015 14:22
-
-
Save mstine/6c8f672c02b367b3a980 to your computer and use it in GitHub Desktop.
Try making FortuneService in fortune-teller-ui look like this:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@HystrixCommand(fallbackMethod = "fallbackFortune", commandProperties = { | |
@HystrixProperty(name = "circuitBreaker.errorThresholdPercentage", value = "20") | |
}) | |
public Fortune randomFortune() { | |
return restTemplate.getForObject("http://fortunes/random", Fortune.class); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment