management.health.mail.enabled management.health.mongo.enabled management.health.redis.enabled management.health.solr.enabled management.health.elasticsearch.enabled
代码自定义了健康检查路径/actuator/health
但是实际请求的时候走不到自己的代码里
会经过filter拦截掉,拦截之后会经过调用es的健康检查失败,而返回503
application.yaml里
management
endpoints
exposure
exclude: health
排除health,走自己写的健康检查接口
以上就是springboot怎么禁用某项健康检查的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号