Building a client-side application

If you set port 8888 as the default for the server, the configuration on the client side is really simple. All you need to do is to provide the bootstrap.yml file with the application name and include the following dependency in your pom.xml. Of course, that rule is applicable only on localhost, because the auto-configured Config Server address for a client is http://localhost:8888:

<dependency>  <groupId>org.springframework.cloud</groupId>  <artifactId>spring-cloud-starter-config</artifactId></dependency>

If you set a port different than 8888 for the server, or it is running on a different machine than the client application, you should also set its current address in bootstrap.yml. Here are the bootstrap ...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.