diff --git a/httpClients/boot-restclient/src/main/java/com/example/restclient/bootrestclient/config/RestClientConfiguration.java b/httpClients/boot-restclient/src/main/java/com/example/restclient/bootrestclient/config/RestClientConfiguration.java index 57845137c..5cf8c540b 100644 --- a/httpClients/boot-restclient/src/main/java/com/example/restclient/bootrestclient/config/RestClientConfiguration.java +++ b/httpClients/boot-restclient/src/main/java/com/example/restclient/bootrestclient/config/RestClientConfiguration.java @@ -24,6 +24,11 @@ @Slf4j public class RestClientConfiguration { + @Bean + RestClient restClient(RestClient.Builder restClientBuilder) { + return restClientBuilder.build(); + } + @Bean RestClientCustomizer restClientCustomizer( ApplicationProperties applicationProperties, @@ -49,11 +54,6 @@ RestClientCustomizer restClientCustomizer( }); } - @Bean - RestClient restClient(RestClient.Builder restClientBuilder) { - return restClientBuilder.build(); - } - private void logResponse(ClientHttpResponse response) throws IOException { log.info( "============================response begin==========================================");