spring boot actuator服务监控与管理
生活随笔
收集整理的這篇文章主要介紹了
spring boot actuator服务监控与管理
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.引入actuator所需要的jar包
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-actuator</artifactId> </dependency>2.添加actuator所需要的配置(注意:如果使用properties文件management.endpoints.web.exposure.include=*,此處不能加引號)
management:endpoints:web:exposure:#加載所有的斷點 默認只加載了info,healthinclude: '*'endpoint:health:show-details: alwaysshutdown:enabled: false3.可通過訪問以下連接進行測試
?http://localhost:8080/actuator/health
4.更多詳細配置可查看
https://blog.csdn.net/alinyua/article/details/80009435
轉載于:https://www.cnblogs.com/gyli20170901/p/10044883.html
總結
以上是生活随笔為你收集整理的spring boot actuator服务监控与管理的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Python cv2 摄像头
- 下一篇: 开发者论坛一周精粹(第六十八期) 如何把