1

我目前正在使用

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.3.0.RELEASE</version>
</parent>

并遵循弹性搜索的依赖关系

<dependency>
        <groupId>org.elasticsearch.client</groupId>
        <artifactId>elasticsearch-rest-high-level-client</artifactId>
    </dependency>

我现在正在连接到单个弹性集群,但现在我需要连接到多个弹性搜索集群中的任何一个。这应该在运行时使用 spring 云配置发生。这可以实现吗?如何实现?

4

0 回答 0