springboot 如何禁用某项健康检查

网友投稿 820 2022-12-25

springboot 如何禁用某项健康检查

springboot 如何禁用某项健康检查

springboot 禁用某项健康检查

management.health.mail.enabled

management.health.mongo.enabled

management.health.redis.enabled

management.health.solr.enabled

management.health.elasticsearch.enabled

http://doGDgFeOiAdLcs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-http://ready-customizing-endpoints

springboot加es健康检查问题

代码自定义了健康检查路径/actuator/health

但是实际请求的时候走不到自己的代码里

会经过filter拦截掉,拦截之后会经过调用es的健康检查失败,而返回503

解决办法:

application.yaml里

management

endpoints

exposure

exclude: health

排除health,走自己写的健康检查接口

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:江西一体化政务服务平台(江西政务服务网网址)
下一篇:flutter媒体组件(flutter 布局组件)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~