Very basic Spring Boot Admin Server generated with the Spring Initializr.
This is meant to be used as a monitor to bbdata-api applications. See the BBData API README for more details.
- set the default port to
8222instead of8080; - add
bootJartarget in gradle;
Create a bootable jar:
./gradlew bootJarLaunch:
./build/libs/spring-boot-admin-*.jarFor clients to connect, add the spring-boot-admin-starter-client dependency in your build.gradle.kts:
implementation("de.codecentric:spring-boot-admin-starter-client")Add the following to your application.properties:
## Spring Boot Admin
# expose every actuator available, but ensure it runs on another (secured) port !
management.server.port=8111
management.endpoints.web.exposure.include=*
# enable spring boot admin client
spring.boot.admin.client.enabled=true
# provide this server URL TODO
spring.boot.admin.client.url=http://localhost:8222
# give a name to your app (will show in the UI)
spring.boot.admin.client.instance.name=Spring Boot App InstanceDone.