Disable spring boot actuator "health-component" and "health-component-instance"

nairavs :

Hi I am using actuator in sprinb-boot 2, with the following properties

management.endpoints.enabled-by-default=false
management.endpoint.health.enabled=true

My aim is to disable all endpoints except health. By this configuration I disabled all except health and getting the following endpoints now "health", "health-component", "health-component-instance" . Is it possible to disable "health-component", "health-component-instance" as well ? And how ?

Karol Dowbecki :

Health component endpoints were introduced in Spring Boot 2.2.0.M2 as an extension to already existing HealthEndpoint.

There is no configuration option to disable just /health-component and /health-component-instance, either the entire health endpoint is disabled or not.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=88695&siteId=1