Admin Application

by dkorotych

GitHub Readme.md

Spring Boot Admin Template Application

Spring Boot Admin Application for deploy template for Heroku

button

Register client

Add spring-boot-admin-client dependency

pom.xml
<dependency>
    <groupId>de.codecentric</groupId>
    <artifactId>spring-boot-admin-client</artifactId>
    <version>2.1.5</version>
</dependency>

or

build.gradle
implementation 'de.codecentric:spring-boot-admin-client:2.1.5'

Add configuration code look like this to your Spring Boot configuration file

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