Home >Java >javaTutorial >How to disable a certain health check in springboot

How to disable a certain health check in springboot

WBOY
WBOYforward
2023-05-10 22:07:111816browse

springboot disables a certain health check

management.health.mail.enabled
management.health.mongo.enabled
management.health.redis.enabled
management.health.solr.enabled
management.health.elasticsearch.enabled

springboot adds es health check problem

The code customizes the health check path/actuator/health

But when the actual request is made If it cannot reach your own code,

will be intercepted by the filter. After interception, the health check of calling es will fail, and 503

will be returned. Solution:

application. In yaml

  • management

  • ##endpoints

  • exposure

  • exclude: health

Exclude health and follow your own health Check interface

The above is the detailed content of How to disable a certain health check in springboot. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete