This Video Explain you How to Work with Spring Cloud Consul Key Value | Distributed Configuration, And to Set up the Centralise Configuration.
Consul Download - https://developer.hashicorp.com/consu...
If Brew is not Install on Mac Machine, We need to install that first -
https://brew.sh/
Brew Command for Installation - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Hom...)"
Brew Path Setup in Bash Profile/ZShell - export PATH=/opt/homebrew/bin:$PATH
For Mac Users -
brew tap hashicorp/tap
brew install hashicorp/tap/consul
Prerequisite for Consul -
Check IP Address on Machine -
Windows - ipconfig
Mac -
ipconfig getifaddr en1 - Ethernet
ipconfig getifaddr en0 - Wifi
Consul Command to Start =
consul agent -dev -bind 192.168.1.2(192.168.1.2 - IP Add. for your Machine)
Consul URL - http://localhost:8500/ui/dc1/services
Cloud Documentation for Consul - https://docs.spring.io/spring-cloud-c...
Github URL for Code - https://github.com/PrashantRana95/spr...
#springboot #microservice