This Repository is migrated to https://github.com/resilience4j/resilience4j-spring-cloud2-demo |
---|
This demo shows how to use the fault tolerance library Resilience4j in a Spring Boot 2 application with Spring Cloud.
client
module : spring-cloud-config-client.server
module : spring-cloud-config-server.
On this demo, server
module serve application.yml
in config
branch.
-
Fork this repo.
-
Start the
server
module through the main class. -
Start the
client
module afterserver
module is up. -
Request to
http://localhost:8080/check
.
- You can see the Resilience4j's default config value in
application.yml
.
-
Edit some config values in
config
branch. -
Request to
http://localhost:8080/actuator/refresh
for refreshing Registry's config. -
Request to
http://localhost:8080/check
again.
- You can see the edited config values.