Consul and Spring Boot
In this lesson, we'll discuss Consul and Spring boot.
We'll cover the following...
Introduction #
The Consul integration in Spring Boot is comparable to the integration of Eureka (see Eureka: Service Discovery).
There is a configuration file application.properties
. Here is the relevant
section:
spring.application.name=catalog
spring.cloud.consul.host=consul
spring.cloud.consul.port=8500
spring.cloud.consul.discovery.preferIpAddress=true
spring.cloud.consul.discovery.instanceId=\${spring.applicat
...