java spring boot 开启监控信息

JAVA学习网 2019-01-24 15:42:02

效果:

配置

//     pom
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
//    application.properties
# spring boot 开启监控信息
management.endpoints.web.exposure.include=*
management.endpoints.web.exposure.exclude=shutdown

 

阅读(2950) 评论(0)