diff --git a/docs/modules/ROOT/pages/spring-cloud-commons/common-abstractions.adoc b/docs/modules/ROOT/pages/spring-cloud-commons/common-abstractions.adoc index 87c88a474..c8a0f336b 100644 --- a/docs/modules/ROOT/pages/spring-cloud-commons/common-abstractions.adoc +++ b/docs/modules/ROOT/pages/spring-cloud-commons/common-abstractions.adoc @@ -272,7 +272,7 @@ public class MyConfiguration { @Primary @Bean RestClient.Builder restClientBuilder() { - return WebClient.builder(); + return RestClient.builder(); } } @@ -285,7 +285,7 @@ public class MyClass { private RestClient.Builder loadBalanced; public String doOtherStuff() { - return restClientBuilder.build().get().uri("http://stores/stores") + return loadBalanced.build().get().uri("http://stores/stores") .retrieve().body(String.class); }