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