From 71265b070a631f4b729e7cad08768365863e5cb2 Mon Sep 17 00:00:00 2001 From: Raja Kolli Date: Sun, 3 Nov 2024 01:29:53 +0530 Subject: [PATCH] replace deprecated methods --- .../learning/mfscreener/config/RestTemplateConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/learning/mfscreener/config/RestTemplateConfiguration.java b/src/main/java/com/learning/mfscreener/config/RestTemplateConfiguration.java index 4a90dc82..5b9c2bdb 100644 --- a/src/main/java/com/learning/mfscreener/config/RestTemplateConfiguration.java +++ b/src/main/java/com/learning/mfscreener/config/RestTemplateConfiguration.java @@ -13,8 +13,8 @@ public class RestTemplateConfiguration { @Bean RestTemplate restTemplate(RestTemplateBuilder restTemplateBuilder) { return restTemplateBuilder - .setConnectTimeout(Duration.ofSeconds(30)) - .setReadTimeout(Duration.ofSeconds(60)) + .connectTimeout(Duration.ofSeconds(30)) + .readTimeout(Duration.ofSeconds(60)) .build(); }