pom.xml
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>3.3.3</version>
</dependency>
or
build.gradle
implementation 'de.codecentric:spring-boot-admin-starter-client:3.3.3'
application.yaml
spring:
boot:
admin:
client:
url: https://<admin-application-name>.herokuapp.com/
instance:
management-base-url: https://<client-application-name>.herokuapp.com/
service-base-url: ${spring.boot.admin.client.instance.management-base-url}
auto-deregistration: true
period: 5m
or
application.properties
spring.boot.admin.client.url=https://<admin-application-name>.herokuapp.com/
spring.boot.admin.client.instance.management-base-url=https://<client-application-name>.herokuapp.com/
spring.boot.admin.client.instance.service-base-url=${spring.boot.admin.client.instance.management-base-url}
spring.boot.admin.client.auto-deregistration=true
spring.boot.admin.client.period=5m
Additional information about configuration client application