DevOps.dev

Devops.dev is a community of DevOps enthusiasts sharing insight, stories, and the latest development in the field.

Follow publication

Spring Cloud 3.x integrated admin quick start demo

HBLOG
DevOps.dev
Published in
3 min readOct 7, 2024

--

1. What is Spring Boot Admin?

Spring Boot Admin (SBA) is a community open source project for managing and monitoring Spring Boot applications . It provides detailed health information, memory information, JVM system and environment properties, garbage collection information, log setting and viewing, scheduled task viewing, Spring Boot cache viewing and management, etc. Spring Boot Admin is divided into server ( spring-boot-admin-server) and client ( spring-boot-admin-client). The server and client use http communication to realize data interaction; integration is required in a single project spring-boot-admin-clientfor the application to be monitored.

2. Code Engineering

Purpose

Build the server service and register the client information on the server

Server

pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<artifactId>admin</artifactId>
<groupId>com.et</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>admin-server</artifactId>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
<version>3.0.4</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-config-server</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>

</dependencies>
</project>

--

--

Published in DevOps.dev

Devops.dev is a community of DevOps enthusiasts sharing insight, stories, and the latest development in the field.

Written by HBLOG

talk is cheap ,show me your code

No responses yet