Skip to content

Commit

Permalink
replace deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
ulischulte committed Dec 20, 2024
1 parent 51e1d37 commit 3dd10be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ public static class BlockingRegistrationClientConfig {
@Bean
@ConditionalOnMissingBean
public RegistrationClient registrationClient(ClientProperties client) {
RestTemplateBuilder builder = new RestTemplateBuilder().setConnectTimeout(client.getConnectTimeout())
.setReadTimeout(client.getReadTimeout());
RestTemplateBuilder builder = new RestTemplateBuilder().connectTimeout(client.getConnectTimeout())
.readTimeout(client.getReadTimeout());

if (client.getUsername() != null && client.getPassword() != null) {
builder = builder.basicAuthentication(client.getUsername(), client.getPassword());
Expand Down

0 comments on commit 3dd10be

Please sign in to comment.