Fish

宁在直中取,不在曲中求

java spring boot 开启监控信息

效果:

配置

//     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

 

posted @ 2019-01-23 19:21 Fish-Blog 阅读(...) 评论(...) 编辑 收藏