springboot怎么禁用某项健康检查
作者:SoftHope
时间:2023-05-11
浏览:4
springboot禁用某项健康检查management.health.mail.enabledmanagement.health.mongo.enabledmanagement.health.redis.enabledmanagement.health.solr.enabledmanagement.health.elasticsearch.enabledspringboot加es健康检查问题代码自定义了健康检查路径/actuator/health但是实际请求的时候走不到自己的代码里会经过filter拦截
本文目录
springboot 禁用某项健康检查
management.health.mail.enabled management.health.mongo.enabled management.health.redis.enabled management.health.solr.enabled management.health.elasticsearch.enabled
springboot加es健康检查问题
代码自定义了健康检查路径/actuator/health
但是实际请求的时候走不到自己的代码里
会经过filter拦截掉,拦截之后会经过调用es的健康检查失败,而返回503
解决办法:
application.yaml里
managementendpointsexposureexclude: health
排除health,走自己写的健康检查接口
作者最新文章
office安装工具箱 常用功能介绍
2026-11-02 16:29
悟空浏览器怎么彻底清理浏览器配置文件
2026-11-02 10:28
BOBO浏览器安卓手机版下载与横屏设置教程
2026-10-30 17:48
paragon ntfs for mac 只读怎么操作
2026-10-23 20:31
热门文章
更多
精品专题
更多
Mac软件
更多
WINDOWS
更多
























