From 2dff866c4d0a149b4ac36e10caeca75d81eefba6 Mon Sep 17 00:00:00 2001 From: Jacek Bilski Date: Fri, 20 Dec 2024 10:58:02 +0100 Subject: [PATCH] In order to preserve old behaviour, don't try to create `RestClient`-based RegistrationClient, when `RestTemplateBuilder` bean is present. --- .../client/config/SpringBootAdminClientAutoConfiguration.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/SpringBootAdminClientAutoConfiguration.java b/spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/SpringBootAdminClientAutoConfiguration.java index d27d324c4e9..a73c3b71e78 100644 --- a/spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/SpringBootAdminClientAutoConfiguration.java +++ b/spring-boot-admin-client/src/main/java/de/codecentric/boot/admin/client/config/SpringBootAdminClientAutoConfiguration.java @@ -160,6 +160,7 @@ public RegistrationClient registrationClient(ClientProperties client) { @Configuration(proxyBeanMethods = false) @ConditionalOnBean(RestClient.Builder.class) + @ConditionalOnMissingBean(RestTemplateBuilder.class) public static class RestClientRegistrationClientConfig { @Bean