Browse Source

Merge pull request #1877 from yongsungyoon/master

Add @Component for Feign Hystrix Fallback example in doc
pull/6/head
Ryan Baxter 8 years ago committed by GitHub
parent
commit
287ce9c0ff
  1. 2
      docs/src/main/asciidoc/spring-cloud-netflix.adoc

2
docs/src/main/asciidoc/spring-cloud-netflix.adoc

@ -1107,7 +1107,7 @@ favor for an opt-in approach.
[[spring-cloud-feign-hystrix-fallback]] [[spring-cloud-feign-hystrix-fallback]]
=== Feign Hystrix Fallbacks === Feign Hystrix Fallbacks
Hystrix supports the notion of a fallback: a default code path that is executed when they circuit is open or there is an error. To enable fallbacks for a given `@FeignClient` set the `fallback` attribute to the class name that implements the fallback. Hystrix supports the notion of a fallback: a default code path that is executed when they circuit is open or there is an error. To enable fallbacks for a given `@FeignClient` set the `fallback` attribute to the class name that implements the fallback. You also need to declare your implementation as a Spring bean.
[source,java,indent=0] [source,java,indent=0]
---- ----

Loading…
Cancel
Save