Elasticsearch Java API CRUD Example in Spring MVC.
- STS(or maven)
- tomcat
- Elasticsearch 5.2.2
-
Downlaod From official website, link
or
-
Run with docker
$ cd es/
$ docker run -p 9200:9200 -p 9300:9300 \
-v ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml elasticsearch:5.2.2
- Run with docker-compose
$ cd es/
$ docker-compose up
- Run with STS
- import as Maven project
- change context root to "/"
- Using maven to build WAR file
Elasticsearch IP Setting in Spring
- src/main/webapp/WEB-INF/spring-servlet.xml
visit http://localhost:8080/