当前位置:   article > 正文

springboot的actuator配置_springbootaithor配置

springbootaithor配置

1、引入依赖包(2.0.0版本)

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
  • 1
  • 2
  • 3
  • 4

2、yaml文件配置

#暴露端口
management:
  endpoints:
    web:
      exposure:
        include: "*"   # * 在yaml 文件属于关键字
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

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 描述配置属性(包含默认值)如
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Guff_9hys/article/detail/856585
推荐阅读
相关标签
  

闽ICP备14008679号