---
agentTools:
  projectIndex: https://resilience4j.readme.io/llms.txt
---

# Getting Started

Getting started with resilience4j-spring-cloud2

[block:api-header]
{
  "title": "Setup"
}
[/block]

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.

[block:code]
{
  "codes": [
    {
      "code": "repositories {\n    jCenter()\n}\n\ndependencies {\n    compile \"io.github.resilience4j:resilience4j-spring-cloud2:${resilience4jVersion}\"\n    compile('org.springframework.boot:spring-boot-starter-actuator')\n    compile('org.springframework.boot:spring-boot-starter-aop')\n    compile('org.springframework.cloud:spring-cloud-starter-config')  \n}",
      "language": "groovy"
    }
  ]
}
[/block]

The configuration is similar to the Spring Boot 2 Starter.

[block:api-header]
{
  "title": "Demo"
}
[/block]

Setup and usage of Spring Cloud 2 is demonstrated into a [demo](https://github.com/resilience4j/resilience4j-spring-cloud2-demo).