1.性能监控 导入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2.yaml
management:
endpoints:
web:
exposure:
include: health,info,metrics,env,configprops,loggers,threaddump,heapdump
endpoint:
health:
show-details: always
暴露端口 接口访问获取信息
# 基础健康检查
http://localhost:10247/secondary-balance-service/actuator/health
# 应用信息
http://localhost:10247/secondary-balance-service/actuator/info
# 指标数据
http://localhost:10247/secondary-balance-service/actuator/metrics
# 日志级别管理
htt