April 2018
Intermediate to advanced
432 pages
10h 38m
English
To activate Consul service discovery in your project, you should include the starter spring-cloud-starter-consul-discovery to the dependencies. If you would like to enable distributed configuration with Consul, just include spring-cloud-starter-consul-config. In some cases, you would probably use both these features in your client-side application. Then, you should declare a dependency to the spring-cloud-starter-consul-all artifact:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-consul-all</artifactId></dependency>
By default, the Consul agent is expected to be available under the address localhost:8500. If it is different for your application, you should provide ...