Skip to Content
Mastering Spring Cloud
book

Mastering Spring Cloud

by Piotr Mińkowski
April 2018
Intermediate to advanced content levelIntermediate to advanced
432 pages
10h 38m
English
Packt Publishing
Content preview from Mastering Spring Cloud

Integration on the client side

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices with Spring Boot and Spring Cloud - Second Edition

Microservices with Spring Boot and Spring Cloud - Second Edition

Magnus Larsson

Publisher Resources

ISBN: 9781788475433Supplemental Content