From fa6cb9ce8279453731dbb5603ecaf8a22b52a2bf Mon Sep 17 00:00:00 2001 From: buildmaster Date: Sat, 22 Feb 2020 13:12:29 +0000 Subject: [PATCH] Sync docs from master to gh-pages --- reference/html/index.html | 37 +++------------------- reference/html/spring-cloud-openfeign.html | 37 +++------------------- 2 files changed, 10 insertions(+), 64 deletions(-) diff --git a/reference/html/index.html b/reference/html/index.html index b88bed75..f99f5f68 100644 --- a/reference/html/index.html +++ b/reference/html/index.html @@ -142,7 +142,7 @@ To use Feign create an interface and annotate it. It has pluggable annotation support including Feign annotations and JAX-RS annotations. Feign also supports pluggable encoders and decoders. Spring Cloud adds support for Spring MVC annotations and for using the same HttpMessageConverters used by default in Spring Web. -Spring Cloud integrates Ribbon and Eureka, as well as Spring Cloud LoadBalancer to provide a load-balanced http client when using Feign.

+Spring Cloud integrates Eureka, as well as Spring Cloud LoadBalancer to provide a load-balanced http client when using Feign.

1.1. How to Include Feign

@@ -181,7 +181,7 @@ public interface StoreClient {
-

In the @FeignClient annotation the String value ("stores" above) is an arbitrary client name, which is used to create either a Ribbon load-balancer (see below for details of Ribbon support) or Spring Cloud LoadBalancer. +

In the @FeignClient annotation the String value ("stores" above) is an arbitrary client name, which is used to create a Spring Cloud LoadBalancer client. You can also specify a URL using the url attribute (absolute value or just a hostname). The name of the bean in the application context is the fully qualified name of the interface. @@ -193,22 +193,7 @@ of the @FeignClient annotation.

for the "stores" service. If your application is a Eureka client then it will resolve the service in the Eureka service registry. If you don’t want to use Eureka, you can simply configure a list of servers -in your external configuration (see -above for example).

-
-
- - - - - -
- - -In order to maintain backward compatibility, is used as the default load-balancer implementation. -However, Spring Cloud Netflix Ribbon is now in maintenance mode, so we recommend using Spring Cloud LoadBalancer instead. -To do this, set the value of spring.cloud.loadbalancer.ribbon.enabled to false. -
+in your external configuration.

@@ -295,7 +280,7 @@ public interface StoreClient {
-

Spring Cloud Netflix provides the following beans by default for feign (BeanType beanName: ClassName):

+

Spring Cloud OpenFeign provides the following beans by default for feign (BeanType beanName: ClassName):

-
- - - - - -
- - -spring-cloud-starter-openfeign contains both spring-cloud-starter-netflix-ribbon and spring-cloud-starter-loadbalancer. -
-

The OkHttpClient and ApacheHttpClient feign clients can be used by setting feign.okhttp.enabled or feign.httpclient.enabled to true, respectively, and having them on the classpath. You can customize the HTTP client used by providing a bean of either org.apache.http.impl.client.CloseableHttpClient when using Apache or okhttp3.OkHttpClient when using OK HTTP.

diff --git a/reference/html/spring-cloud-openfeign.html b/reference/html/spring-cloud-openfeign.html index b88bed75..f99f5f68 100644 --- a/reference/html/spring-cloud-openfeign.html +++ b/reference/html/spring-cloud-openfeign.html @@ -142,7 +142,7 @@ To use Feign create an interface and annotate it. It has pluggable annotation support including Feign annotations and JAX-RS annotations. Feign also supports pluggable encoders and decoders. Spring Cloud adds support for Spring MVC annotations and for using the same HttpMessageConverters used by default in Spring Web. -Spring Cloud integrates Ribbon and Eureka, as well as Spring Cloud LoadBalancer to provide a load-balanced http client when using Feign.

+Spring Cloud integrates Eureka, as well as Spring Cloud LoadBalancer to provide a load-balanced http client when using Feign.

1.1. How to Include Feign

@@ -181,7 +181,7 @@ public interface StoreClient {
-

In the @FeignClient annotation the String value ("stores" above) is an arbitrary client name, which is used to create either a Ribbon load-balancer (see below for details of Ribbon support) or Spring Cloud LoadBalancer. +

In the @FeignClient annotation the String value ("stores" above) is an arbitrary client name, which is used to create a Spring Cloud LoadBalancer client. You can also specify a URL using the url attribute (absolute value or just a hostname). The name of the bean in the application context is the fully qualified name of the interface. @@ -193,22 +193,7 @@ of the @FeignClient annotation.

for the "stores" service. If your application is a Eureka client then it will resolve the service in the Eureka service registry. If you don’t want to use Eureka, you can simply configure a list of servers -in your external configuration (see -above for example).

-
-
- - - - - -
- - -In order to maintain backward compatibility, is used as the default load-balancer implementation. -However, Spring Cloud Netflix Ribbon is now in maintenance mode, so we recommend using Spring Cloud LoadBalancer instead. -To do this, set the value of spring.cloud.loadbalancer.ribbon.enabled to false. -
+in your external configuration.

@@ -295,7 +280,7 @@ public interface StoreClient {
-

Spring Cloud Netflix provides the following beans by default for feign (BeanType beanName: ClassName):

+

Spring Cloud OpenFeign provides the following beans by default for feign (BeanType beanName: ClassName):

-
- - - - - -
- - -spring-cloud-starter-openfeign contains both spring-cloud-starter-netflix-ribbon and spring-cloud-starter-loadbalancer. -
-

The OkHttpClient and ApacheHttpClient feign clients can be used by setting feign.okhttp.enabled or feign.httpclient.enabled to true, respectively, and having them on the classpath. You can customize the HTTP client used by providing a bean of either org.apache.http.impl.client.CloseableHttpClient when using Apache or okhttp3.OkHttpClient when using OK HTTP.