Spring Boot Admin
Spring Boot Admin用來管理和監控Spring Boot應用程式
應用程式向我們的Spring Boot Admin Client註冊(通過HTTP)或使用SpringCloud®(例如Eureka,Consul)發現
UI是Spring Boot Actuator端點上的Vue.js應用程式
此專案中,Server和Client在一個專案中
Purpose
每個人都可以獨立、快速、高效地開發專案!
Everyone can develop projects independently, quickly and efficiently!
官網地址:springboot.plus
GITHUB:https://github.com/geekidea/spring-boot-plus
GITEE:https://gitee.com/geekidea/spring-boot-plus
pom.xml依賴
spring boot admin版本宣告,與spring boot版本保持一致
<spring-boot-admin.version>2.1.6</spring-boot-admin.version>
引入spring boot admin server
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
<version>${spring-boot-admin.version}</version>
</dependency>
引入spring boot admin client
<dependency>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-client</artifactId>
<version>${spring-boot-admin.version}</version>
</dependency>
專案入口類註解配置
在入口類上標註@EnableAdminServer註解
@EnableAdminServer
@SpringBootApplication
public class SpringBootPlusApplication {
...
}
配置檔案
spring:
boot:
admin:
client:
url: 'http://localhost:8888'
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
- url:spring boot admin訪問路徑,與當前專案訪問路徑一致
- endpoints:spring boot健康檢查、監控等,可配合spring boot admin使用
訪問控制檯
Spring Boot Admin主介面
Spring Boot Admin Client展示皮膚
Spring Boot Admin 例項皮膚
Spring Boot Admin Monitor
Spring Boot Admin 環境皮膚
Spring Boot Admin Beans皮膚
Spring Boot Admin 專案屬性配置皮膚
Spring Boot Admin Loggers
Spring Boot Admin 執行緒皮膚
Spring Boot Admin Controller對映皮膚
Spring Boot Admin Http呼叫鏈皮膚