文章詳情頁
springboot 如何禁用某項(xiàng)健康檢查
瀏覽:162日期:2023-02-23 17:16:19
springboot 禁用某項(xiàng)健康檢查
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
但是實(shí)際請(qǐng)求的時(shí)候走不到自己的代碼里
會(huì)經(jīng)過filter攔截掉,攔截之后會(huì)經(jīng)過調(diào)用es的健康檢查失敗,而返回503
解決辦法:application.yaml里
management endpoints exposure exclude: health排除health,走自己寫的健康檢查接口
以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持好吧啦網(wǎng)。
標(biāo)簽:
Spring
相關(guān)文章:
1. ASP基礎(chǔ)知識(shí)VBScript基本元素講解2. ASP.NET MVC使用jQuery ui的progressbar實(shí)現(xiàn)進(jìn)度條3. Python 合并拼接字符串的方法4. Linux刪除系統(tǒng)自帶版本Python過程詳解5. Python3 json模塊之編碼解碼方法講解6. python 使用事件對(duì)象asyncio.Event來同步協(xié)程的操作7. Python sublime安裝及配置過程詳解8. Python 利用Entrez庫篩選下載PubMed文獻(xiàn)摘要的示例9. Python 制作查詢商品歷史價(jià)格的小工具10. Python插件機(jī)制實(shí)現(xiàn)詳解
排行榜

網(wǎng)公網(wǎng)安備