亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

springboot 如何禁用某項健康檢查

 更新時間:2021年07月23日 09:15:33   作者:食得落  
這篇文章主要介紹了springboot 如何禁用某項健康檢查的操作,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教

springboot 禁用某項健康檢查

management.health.mail.enabled
management.health.mongo.enabled
management.health.redis.enabled
management.health.solr.enabled
management.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)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論