SpringBoot-Actuator
SpringBoot-Actuator
cmyang1. 简介
spring-boot-actuator可以监控和管理基于Spring Boot的应用程序
https://docs.spring.io/spring-boot/docs/2.7.18/reference/html/actuator.html
2. demo
在springboot项目中添加依赖
1 | <dependency> |
浏览器访问:
http://127.0.0.1:8080/actuator
1 | { |
management.endpoints.web.exposure.include=*
查看全部
3. 端点
ID | 描述 |
---|---|
auditevents | 公开当前应用程序的审计事件信息。需要一个AuditEventRepositorybean。 |
beans | 显示应用程序中所有 Spring bean 的完整列表。 |