| 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.
clientmodule : spring-cloud-config-client.servermodule : spring-cloud-config-server.
On this demo, server module serve application.yml in config branch.
-
Fork this repo.
-
Start the
servermodule through the main class. -
Start the
clientmodule afterservermodule 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
configbranch. -
Request to
http://localhost:8080/actuator/refreshfor refreshing Registry's config. -
Request to
http://localhost:8080/checkagain.
- You can see the edited config values.