欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

springboot 如何禁用某項(xiàng)健康檢查

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

springboot 禁用某項(xiàng)健康檢查

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

但是實(shí)際請求的時(shí)候走不到自己的代碼里

會經(jīng)過filter攔截掉,攔截之后會經(jīng)過調(diào)用es的健康檢查失敗,而返回503

解決辦法:

application.yaml里

  • management
  • endpoints
  • exposure
  • exclude: health

排除health,走自己寫的健康檢查接口

以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論