diff --git a/spring-boot-admin-docs/src/site/docs/01-getting-started/20-client-registration.md b/spring-boot-admin-docs/src/site/docs/01-getting-started/20-client-registration.md index 9c5af408a16..0f770b1357e 100644 --- a/spring-boot-admin-docs/src/site/docs/01-getting-started/20-client-registration.md +++ b/spring-boot-admin-docs/src/site/docs/01-getting-started/20-client-registration.md @@ -19,7 +19,10 @@ The Spring Boot Admin Client library enables applications to register themselves ### Step 1: Add Dependencies -Add the Spring Boot Admin Client starter to your application: +Add the Spring Boot Admin Client starter and the Spring Boot RestClient to your application: + +> [!IMPORTANT] +> Add `spring-boot-restclient` only if using Spring Boot 4.x and later. Otherwise only add the starter dependency. ```xml title="pom.xml" @@ -27,12 +30,20 @@ Add the Spring Boot Admin Client starter to your application: spring-boot-admin-starter-client @VERSION@ + + + org.springframework.boot + spring-boot-restclient + @VERSION@ + compile + ``` For Gradle: ```groovy title="build.gradle" implementation 'de.codecentric:spring-boot-admin-starter-client:@VERSION@' +implementation 'org.springframework.boot:spring-boot-restclient:@VERSION@' ``` ### Step 2: Configure the Admin Server URL