A simple example showcase for using Elasticsearch within a Spring microservice.
More about it: https://thlaegler.github.io/microservice
You need:
- Maven
- Docker
- Docker Compose
Append /etc/hosts file:
127.0.0.1 elasticsearch-service
127.0.0.1 microservice-mysql
127.0.0.1 microservice-es
- Start Spring Application
- Run as JUnit Test:
src/test/java/feature/FeatureProductSearchIT.java
mvn clean install -Pitest-spring-boot
mvn clean install -Pitest-docker-compose
mvn clean install -Pitest-remote