diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java index 48a3f3b752..48276ae6ec 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfiguration.java @@ -242,7 +242,7 @@ public class HealthIndicatorAutoConfiguration { @Bean @ConditionalOnMissingBean(name = "solrHealthIndicator") - public HealthIndicator rabbitHealthIndicator() { + public HealthIndicator solrHealthIndicator() { if (this.solrServers.size() == 1) { return new SolrHealthIndicator(this.solrServers.entrySet().iterator() .next().getValue());