Python 官方文档:入门教程 => 点击学习
SpringBoot 禁用某项健康检查 management.health.mail.enabled management.health.monGo.enabled manage
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
代码自定义了健康检查路径/actuator/health
但是实际请求的时候走不到自己的代码里
会经过filter拦截掉,拦截之后会经过调用es的健康检查失败,而返回503
application.yaml里
management
endpoints
exposure
exclude
: health排除health,走自己写的健康检查接口
以上为个人经验,希望能给大家一个参考,也希望大家多多支持编程网。
--结束END--
本文标题: springboot 如何禁用某项健康检查
本文链接: https://www.lsjlt.com/news/130978.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0