摘要:
1、编写监控信息: HealthIndicator: package com.gcz.indicator; import org.springframework.boot.actuate.health.Health; import org.springframework.boot.actuate.h 阅读全文
摘要:
1、trace(跟踪)通过配置 InMemoryHttpTraceRepository 来实现,setCapacity()方法设置保留的请求数 Config package com.gcz.config; import org.springframework.boot.actuate.trace.h 阅读全文
摘要:
1、添加Actuator监控 pom <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSche 阅读全文