1

I am currently using

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

and following dependency for elasticsearch

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

I am connecting to single elastic cluster now, but now I need to connect to either of the multiple elasticsearch clusters. This should happen at runtime using spring cloud config. Can this be achieved and how?

0 Answers0