-
Notifications
You must be signed in to change notification settings - Fork 723
Spring Boot Admin(十一)
springboot-plus edited this page Aug 26, 2019
·
1 revision
Spring Boot Admin用来管理和监控Spring Boot应用程序 应用程序向我们的Spring Boot Admin Client注册(通过HTTP)或使用SpringCloud®(例如Eureka,Consul)发现 UI是Spring Boot Actuator端点上的Vue.js应用程序 此项目中,Server和Client在一个项目中
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调用链面板