Skip to content

Commit

Permalink
replace deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rajadilipkolli authored Nov 2, 2024
1 parent da74d41 commit 71265b0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 71265b0

Please sign in to comment.