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
但是实际请求的时候走不到自己的代码里
会经过filter拦截掉,拦截之后会经过调用es的健康检查失败,而返回503
解决办法:
application.yaml里
management
endpoints
exposure
exclude
: health
排除health,走自己写的健康检查接口
以上为个人经验,希望能给大家一个参考,也希望大家多多支持。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)