文章詳情頁
springboot 如何禁用某項健康檢查
瀏覽:62日期:2023-02-23 17:16:19
springboot 禁用某項健康檢查
management.health.mail.enabledmanagement.health.mongo.enabledmanagement.health.redis.enabledmanagement.health.solr.enabledmanagement.health.elasticsearch.enabled
http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-customizing-endpoints
springboot加es健康檢查問題代碼自定義了健康檢查路徑/actuator/health
但是實際請求的時候走不到自己的代碼里
會經(jīng)過filter攔截掉,攔截之后會經(jīng)過調(diào)用es的健康檢查失敗,而返回503
解決辦法:application.yaml里
management endpoints exposure exclude: health排除health,走自己寫的健康檢查接口
以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持好吧啦網(wǎng)。
標(biāo)簽:
Spring
相關(guān)文章:
1. PHP正則表達式函數(shù)preg_replace用法實例分析2. 一個 2 年 Android 開發(fā)者的 18 條忠告3. vue使用moment如何將時間戳轉(zhuǎn)為標(biāo)準(zhǔn)日期時間格式4. js select支持手動輸入功能實現(xiàn)代碼5. Android 實現(xiàn)徹底退出自己APP 并殺掉所有相關(guān)的進程6. Android studio 解決logcat無過濾工具欄的操作7. 什么是Python變量作用域8. vue-drag-chart 拖動/縮放圖表組件的實例代碼9. Spring的異常重試框架Spring Retry簡單配置操作10. Vue實現(xiàn)仿iPhone懸浮球的示例代碼
排行榜
