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(); }