2018-03-08
springboot-查看监控信息
springboot 评论:0 浏览:100

转载请注明出处:https://oldnoop.tech/c/164.html

引入起步依赖

spring-boot-starter-actuator

开启敏感信息查看

修改application.properties
#配置开启项目监控敏感信息查看
management.security.enabled=false

查看信息

可以查看health(应用的健康状况),info(应用的信息),beans(应用中配置的bean的信息)等等

http://localhost:8080/beans

http://localhost:8080/health

http://localhost:8080/info

说明:springboot工程默认服务的上下文路径为/,端口默认为8080

 



  • 转载请注明出处:https://oldnoop.tech/c/164.html

Copyright © 2018 oldnoop.tech. All Rights Reserved

鄂ICP备2023022735号-1