diff --git a/2.0.x/multi/multi_spring-cloud-feign.html b/2.0.x/multi/multi_spring-cloud-feign.html index 3eefb163b..f8a535b04 100644 --- a/2.0.x/multi/multi_spring-cloud-feign.html +++ b/2.0.x/multi/multi_spring-cloud-feign.html @@ -95,7 +95,7 @@ a separate request interceptor.
private FooClient adminClient;
- @Autowired
+ @Autowired
public FooController(
Decoder decoder, Encoder encoder, Client client) {
this.fooClient = Feign.builder().client(client)
@@ -112,7 +112,7 @@ a separate request interceptor.![[Note]](images/note.png)
Note In the above example FeignClientsConfiguration.class is the default configuration
provided by Spring Cloud Netflix.
![[Note]](images/note.png)
Note PROD-SVC is the name of the service the Clients will be making requests to.
If Hystrix is on the classpath and feign.hystrix.enabled=true, Feign will wrap all methods with a circuit breaker. Returning a com.netflix.hystrix.HystrixCommand is also available. This lets you use reactive patterns (with a call to .toObservable() or .observe() or asynchronous use (with a call to .queue()).
To disable Hystrix support on a per-client basis create a vanilla Feign.Builder with the "prototype" scope, e.g.:
@Configuration
public class FooConfiguration {
- @Bean
+ @Bean
@Scope("prototype")
public Feign.Builder feignBuilder() {
return Feign.builder();
diff --git a/2.0.x/single/spring-cloud-netflix.html b/2.0.x/single/spring-cloud-netflix.html
index 51c226f75..bb290233e 100644
--- a/2.0.x/single/spring-cloud-netflix.html
+++ b/2.0.x/single/spring-cloud-netflix.html
@@ -611,7 +611,7 @@ a separate request interceptor.private FooClient adminClient;
- @Autowired
+ @Autowired
public FooController(
Decoder decoder, Encoder encoder, Client client) {
this.fooClient = Feign.builder().client(client)
@@ -628,7 +628,7 @@ a separate request interceptor.![[Note]](images/note.png)
Note In the above example FeignClientsConfiguration.class is the default configuration
provided by Spring Cloud Netflix.
![[Note]](images/note.png)
Note PROD-SVC is the name of the service the Clients will be making requests to.
If Hystrix is on the classpath and feign.hystrix.enabled=true, Feign will wrap all methods with a circuit breaker. Returning a com.netflix.hystrix.HystrixCommand is also available. This lets you use reactive patterns (with a call to .toObservable() or .observe() or asynchronous use (with a call to .queue()).
To disable Hystrix support on a per-client basis create a vanilla Feign.Builder with the "prototype" scope, e.g.:
@Configuration
public class FooConfiguration {
- @Bean
+ @Bean
@Scope("prototype")
public Feign.Builder feignBuilder() {
return Feign.builder();
diff --git a/2.0.x/spring-cloud-netflix.xml b/2.0.x/spring-cloud-netflix.xml
index e4a8f8148..d1debbbe6 100644
--- a/2.0.x/spring-cloud-netflix.xml
+++ b/2.0.x/spring-cloud-netflix.xml
@@ -1143,7 +1143,7 @@ class FooController {
private FooClient adminClient;
- @Autowired
+ @Autowired
public FooController(
Decoder decoder, Encoder encoder, Client client) {
this.fooClient = Feign.builder().client(client)
@@ -1172,7 +1172,7 @@ provided by Spring Cloud Netflix.
To disable Hystrix support on a per-client basis create a vanilla Feign.Builder with the "prototype" scope, e.g.:
@Configuration
public class FooConfiguration {
- @Bean
+ @Bean
@Scope("prototype")
public Feign.Builder feignBuilder() {
return Feign.builder();