SpringBoot ~ 应用监控

  1. 添加pom依赖

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
    
  2. application.properties配置

    #actuator
    management.endpoint.shutdown.enabled=true
    #暴露所有端点
    management.endpoints.web.exposure.include=*
    #management.endpoints.web.exposure.include=mappings,metrics
    #management.endpoints.enabled-by-default=false
    #management.endpoint.info.enabled=true
    

猜你喜欢

转载自blog.csdn.net/qq_39743981/article/details/106608578
今日推荐