Demonstration of how we can connect to cassandra, elasticsearch using spring boots 2
-
Run the cassandra script
db.cql
-
Run the elastic script
students-index-mapping.json
via PostMan.
PUT :http://localhost:9200/students
-
Configure the student-service.yml in Consul in some path lets
arpan/meetup/student-service.yml
.
Give the following consul location via VM argument while running the application:
-Dspring.cloud.consul.host=consul.url.com
-Dspring.cloud.consul.port=80
-Dspring.cloud.consul.config.prefix=arpan/meetup
-
Access the application :
http://localhost:8900/meetup/swagger-ui.htm
-
Access Health Endpoint :
http://localhost:8911/health