# Java Client or Spring Boot for ElasticSearch 7.3.1

**URL:** <https://discuss.elastic.co/t/java-client-or-spring-boot-for-elasticsearch-7-3-1/199778>\
**Category:** Elasticsearch\
**Created:** [September 17, 2019, 7:56am UTC](https://discuss.elastic.co/t/java-client-or-spring-boot-for-elasticsearch-7-3-1/199778 "2019-09-17T07:56:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark\_sirus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_sirus/32/45707_2.png) [@mark\_sirus](https://discuss.elastic.co/u/mark_sirus)\
**Post date:** [September 17, 2019, 7:56am UTC](https://discuss.elastic.co/t/java-client-or-spring-boot-for-elasticsearch-7-3-1/199778/1 "2019-09-17T07:56:24Z")

</div>

Hi,

I am not able to find a solution to access the elasticsearch 7.3.1 via Java Client. I tried Spring Boot, TransportClient but I always get the version error:  
java.lang.IllegalStateException: Received message from unsupported version: [6.4.3] minimal compatible version is: [6.8.0]

I technically want to do it using Spring Boot but if there is any other Java based solution to access elasticsearch 7.3.1 version then it would be fine as well.

Thanks,  
Mark Sirus

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 17, 2019, 2:49pm UTC](https://discuss.elastic.co/t/java-client-or-spring-boot-for-elasticsearch-7-3-1/199778/2 "2019-09-17T14:49:17Z")

</div>

When using springboot with  
elasticsearch, you need to be explicit with some transitive dependencies as SpringBoot declares a version 6.4...

Basically you can put this in your `pom.xml`:

```auto
<properties>
  <elasticsearch.version>7.3.0<elasticsearch.version>
</properties>

```

See documentation here: [https://docs.spring.io/spring-boot/docs/current/reference/html/howto-build.html#howto-customize-dependency-versions](https://docs.spring.io/spring-boot/docs/current/reference/html/howto-build.html#howto-customize-dependency-versions)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 15, 2019, 2:49pm UTC](https://discuss.elastic.co/t/java-client-or-spring-boot-for-elasticsearch-7-3-1/199778/3 "2019-10-15T14:49:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
