|
|
@ -242,7 +242,7 @@ public class HealthIndicatorAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnMissingBean(name = "solrHealthIndicator")
|
|
|
|
@ConditionalOnMissingBean(name = "solrHealthIndicator")
|
|
|
|
public HealthIndicator rabbitHealthIndicator() {
|
|
|
|
public HealthIndicator solrHealthIndicator() {
|
|
|
|
if (this.solrServers.size() == 1) {
|
|
|
|
if (this.solrServers.size() == 1) {
|
|
|
|
return new SolrHealthIndicator(this.solrServers.entrySet().iterator()
|
|
|
|
return new SolrHealthIndicator(this.solrServers.entrySet().iterator()
|
|
|
|
.next().getValue());
|
|
|
|
.next().getValue());
|
|
|
|