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

Reload configuration with @RefreshScope

This time we will start unusually from the client side. The example application is available on GitHub (https://github.com/piomin/sample-spring-cloud-config-bus.git). The same as the previous examples, it uses a Git repository as backend storage, which is also created on GitHub (https://github.com/piomin/sample-spring-cloud-config-repo). I added some new properties to the client's configuration file and committed changes to the repository. Here's the current version of the client's configuration:

eureka: instance:   metadataMap:     zone: zone1 client:   serviceUrl:     defaultZone: http://localhost:8761/eureka/server:  port: ${PORT:8081}management: security:   enabled: false sample: string: property: Client App ...
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