SpringBoot2.x监控Actuator

1.actuator : Spring Boot包含许多附加功能,可帮助您在将应用程序投入生产时监视和管理应用程序。 可以选择使用HTTP端点或JMX来管理和监控您的应用程序,自动应用于审计,健康和指标收集;

一句话:springboot提供用于监控和管理生产环境的模块

2、加入依赖
        <dependency>  
            <groupId>org.springframework.boot</groupId>  
            <artifactId>spring-boot-starter-actuator</artifactId>  
        </dependency> 

3、加入上述依赖后,访问几个url
            /actuator/health
            /actuator/info
            /actuator

猜你喜欢

转载自blog.csdn.net/peng_0129/article/details/86006936