Getting Started
Getting started with resilience4j-spring-cloud2
Setup
Add the Spring Cloud 2 Starter of Resilience4j to your compile dependency.
The Spring Cloud 2 Starter allows you to use Spring Cloud Config as a central place to manage and refresh properties at runtime.
The module expects that org.springframework.boot:spring-boot-starter-actuator
and org.springframework.boot:spring-boot-starter-aop
are already provided at runtime.
repositories {
jCenter()
}
dependencies {
compile "io.github.resilience4j:resilience4j-spring-cloud2:${resilience4jVersion}"
compile('org.springframework.boot:spring-boot-starter-actuator')
compile('org.springframework.boot:spring-boot-starter-aop')
compile('org.springframework.cloud:spring-cloud-starter-config')
}
The configuration is similar to the Spring Boot 2 Starter.
Demo
Setup and usage of Spring Cloud 2 is demonstrated into a demo.
Updated over 5 years ago