From 24df76f50d1933561cecfbf809c0899e4d46a6cb Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Sun, 7 Apr 2024 11:48:11 +0530 Subject: [PATCH] ReOrder Beans --- .../bootrestclient/config/RestClientConfiguration.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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==========================================");