文章詳情頁(yè)
springboot 如何禁用某項(xiàng)健康檢查
瀏覽:96日期: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健康檢查問(wèn)題代碼自定義了健康檢查路徑/actuator/health
但是實(shí)際請(qǐng)求的時(shí)候走不到自己的代碼里
會(huì)經(jīng)過(guò)filter攔截掉,攔截之后會(huì)經(jīng)過(guò)調(diào)用es的健康檢查失敗,而返回503
解決辦法:application.yaml里
management endpoints exposure exclude: health排除health,走自己寫(xiě)的健康檢查接口
以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持好吧啦網(wǎng)。
標(biāo)簽:
Spring
相關(guān)文章:
1. php使用正則驗(yàn)證密碼字段的復(fù)雜強(qiáng)度原理詳細(xì)講解 原創(chuàng)2. 基于javaweb+jsp實(shí)現(xiàn)企業(yè)車(chē)輛管理系統(tǒng)3. XML在語(yǔ)音合成中的應(yīng)用4. 基于PHP做個(gè)圖片防盜鏈5. jscript與vbscript 操作XML元素屬性的代碼6. Jsp+Servlet實(shí)現(xiàn)文件上傳下載 文件列表展示(二)7. asp.net core 認(rèn)證和授權(quán)實(shí)例詳解8. ASP.NET MVC把數(shù)據(jù)庫(kù)中枚舉項(xiàng)的數(shù)字轉(zhuǎn)換成文字9. ASP.NET MVC使用Boostrap實(shí)現(xiàn)產(chǎn)品展示、查詢、排序、分頁(yè)10. ASP將數(shù)字轉(zhuǎn)中文數(shù)字(大寫(xiě)金額)的函數(shù)
排行榜
