# Springboots + Elastic search 7.6.2 Integration failing

**URL:** https://discuss.elastic.co/t/springboots-elastic-search-7-6-2-integration-failing/227698
**Category:** Elasticsearch
**Created:** [April 12, 2020, 7:52pm UTC](https://discuss.elastic.co/t/springboots-elastic-search-7-6-2-integration-failing/227698 "2020-04-12T19:52:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Satya\_Tipathy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/satya_tipathy/32/47498_2.png) [@Satya\_Tipathy](https://discuss.elastic.co/u/Satya_Tipathy)
#### Post date: [April 12, 2020, 7:52pm UTC](https://discuss.elastic.co/t/springboots-elastic-search-7-6-2-integration-failing/227698/1 "2020-04-12T19:52:49Z")

</div>

Hi Experts, I am new to EL. Trying to integrate a middle layer between consumer and ELS7.6.2 using spring boots.

Looks like after several try I am unable to run the spring boots application as the Application context is unable to load the rest client.

> **[Satya-Git3105/elastic-poc](https://github.com/Satya-Git3105/elastic-poc/tree/master/poc)**
>
> POC of Elastic search 7.6.2 integration with Spring boots. - Satya-Git3105/elastic-poc

Whilst I am trying to integrate with a plain main program all the integration works successfully.

> **[Satya-Git3105/elastic-poc](https://github.com/Satya-Git3105/elastic-poc/tree/master/Elastic-search-main/elasticsearch)**
>
> POC of Elastic search 7.6.2 integration with Spring boots. - Satya-Git3105/elastic-poc

I am actually running out of ideas here as resolving an application context issue has never been so much elaborative.

Please look at the Git URL I have provided and really appreciate any suggestions.

---

<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: [April 13, 2020, 1:34am UTC](https://discuss.elastic.co/t/springboots-elastic-search-7-6-2-integration-failing/227698/2 "2020-04-13T01:34:39Z")

</div>

Welcome!

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.6.2<elasticsearch.version>
</properties>

```

See documentation here: [https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto-customize-dependency-versions](https://docs.spring.io/spring-boot/docs/current/reference/html/howto.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: [May 11, 2020, 1:34am UTC](https://discuss.elastic.co/t/springboots-elastic-search-7-6-2-integration-failing/227698/3 "2020-05-11T01:34:43Z")

</div>

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