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

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.