# Unable to connect Spring Boot API with elastic search

**URL:** <https://discuss.elastic.co/t/unable-to-connect-spring-boot-api-with-elastic-search/142177>\
**Category:** Elasticsearch\
**Created:** [July 30, 2018, 12:30pm UTC](https://discuss.elastic.co/t/unable-to-connect-spring-boot-api-with-elastic-search/142177 "2018-07-30T12:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dikshash](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@dikshash](https://discuss.elastic.co/u/dikshash)\
**Post date:** [July 30, 2018, 12:30pm UTC](https://discuss.elastic.co/t/unable-to-connect-spring-boot-api-with-elastic-search/142177/1 "2018-07-30T12:30:52Z")

</div>

Hi all,

I have written a simple **Spring Boot API** in **Spring Tool Suite** for elastic search which will be used for CRUD operation using Elastic Search. When I am running my code as Spring Boot app, I am getting following result saying Tomcat server started on 9000 port but when I am trying to access that port using **Postman** with [http://localhost:9000](http://localhost:9000) it is giving 404 error.

**Postman error below:**

```
{
    "timestamp": 1532952939440,
    "status": 404,
    "error": "Not Found",
    "message": "No message available",
    "path": "/"
}

```

Kindly help me.  
Thanks.

---

<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:** [July 30, 2018, 12:57pm UTC](https://discuss.elastic.co/t/unable-to-connect-spring-boot-api-with-elastic-search/142177/2 "2018-07-30T12:57:48Z")

</div>

Tomcat is running on port 9000, right?  
Not elasticsearch.

So I don't see how we can help.

You should ask tomcat or Spring forums may be.

---

<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:** [August 27, 2018, 12:57pm UTC](https://discuss.elastic.co/t/unable-to-connect-spring-boot-api-with-elastic-search/142177/3 "2018-08-27T12:57:50Z")

</div>

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