Skip to content

Commit

Permalink
Fix a deprecation related error in rest-template
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Oct 28, 2024
1 parent 272e9ff commit ecb5bd6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class RestTemplateConfiguration {
RestTemplate restTemplate(RestTemplateBuilder builder) {
return builder.requestFactory(SkipSslVerificationHttpRequestFactory::new)
.defaultHeader("User-Agent", "RestTemplateApplication")
.setConnectTimeout(Duration.ofSeconds(5))
.setReadTimeout(Duration.ofSeconds(5))
.connectTimeout(Duration.ofSeconds(5))
.readTimeout(Duration.ofSeconds(5))
.build();
}

Expand Down

0 comments on commit ecb5bd6

Please sign in to comment.