Home > Java > javaTutorial > body text

How to disable a certain health check in springboot

WBOY
Release: 2023-05-10 22:07:11
forward
1782 people have browsed it

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
Copy after login

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template