Adapt to API change in Spring Framework 5.3.0 snapshots

See gh-23534
This commit is contained in:
Stephane Nicoll
2020-09-30 13:21:16 +02:00
parent 6254ad634e
commit 366fec33d0
9 changed files with 48 additions and 45 deletions

View File

@@ -56,6 +56,7 @@ public class ElasticsearchReactiveHealthIndicator extends AbstractReactiveHealth
return this.client.execute(this::getHealth).flatMap((response) -> doHealthCheck(builder, response));
}
@SuppressWarnings("deprecation") // Requires an update in ReactiveElasticsearchClient
private Mono<ClientResponse> getHealth(WebClient webClient) {
return webClient.get().uri("/_cluster/health/").exchange();
}