server.port = 8080

 

#健康监控

management.security.enabled=false

 

management.port = 54001

health.mail.enabled =false

 

http://localhost:54001/autoconfig

spring-boot-actuator健康监控

 

http://localhost:54001/env

spring-boot-actuator健康监控

http://localhost:54001/health

spring-boot-actuator健康监控

 

HTTP方法

路径

描述

鉴权

GET

/autoconfig

查看自动配置的使用情况

TRUE

GET

/configprops

查看配置属性,包括默认配置

TRUE

GET

/beans

查看bean及其关系列表

TRUE

GET

/dump

打印线程栈

TRUE

GET

/env

查看所有环境变量

TRUE

GET

/env/{name}

查看具体变量值

TRUE

GET

/health

查看应用健康指标

FALSE

GET

/info

查看应用信息(需要自己在application.properties里头添加信息,比如[email protected]

FALSE

GET

/mappings

查看所有url映射

TRUE

GET

/metrics

查看应用基本指标

TRUE

GET

/metrics/{name}

查看具体指标

TRUE

POST

/shutdown

关闭应用(要真正生效,得配置文件开启endpoints.shutdown.enabled: true)

TRUE

GET

/trace

查看基本追踪信息

TRUE

相关文章:

  • 2021-11-30
  • 2022-01-08
  • 2022-12-23
  • 2019-10-29
  • 2022-12-23
  • 2021-11-04
  • 2021-11-01
  • 2021-11-10
猜你喜欢
  • 2021-07-01
  • 2021-06-06
  • 2022-12-23
  • 2022-02-26
  • 2021-11-09
  • 2022-01-07
相关资源
相似解决方案