赞
踩
1、引入依赖包(2.0.0版本)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
2、yaml文件配置
#暴露端口
management:
endpoints:
web:
exposure:
include: "*" # * 在yaml 文件属于关键字
3、keys的配置
management.endpoint..*
management.endpoints.web.cors.*
management.endpoints.jmx.*
management.server.address
management.server.servlet.context-path
management.server.ssl.*
management.server.port
4、端口详细
只有端点/health和/info端点是默认暴露的
HTTP | 方法路径 | 描述 |
---|---|---|
GET | /actuator/conditions | 提供了一份自动配置报告,记录哪些自动配置条件通过了,哪些没通过 |
GET | /actuator/configprops | 描述配置属性(包含默认值)如 |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。