Spring Boot Actuator Health Indicator

后端 未结 3 874
误落风尘
误落风尘 2021-01-14 02:04

We have been using Spring Boot for several projects now, We are using the latest version 1.2.3. We are incorporating Actuator. So far things are working well except we are f

3条回答
  •  时光说笑
    2021-01-14 02:22

    The DataSourceHealthIndicator is used to check availablity. The default query is SELECT 1, but there are some product specific queries, too.
    You can write your own HealthIndicator. Either you implement the interface or extend the AbstractHealthIndicator.
    To disable the default db-health-check put this line into your application properties management.health.db.enabled=false. Hope that helps

提交回复
热议问题