Spring Boot Actuator Health Indicator -


we have been using spring boot several projects now, using latest version 1.2.3. incorporating actuator. far things working except finding /health indicator [default] showing service down. not true. these services implement datasources. may call other soap or rest services. health service looking @ measure whether service down?

as #derfuerst said datasourcehealthindicator has default query check whether db or not.

if want use proper vendor specific query should write own health indicator in configuration class, in case of oracle data source:

@autowired(required = false) private datasource datasource;  @bean @primary public datasourcehealthindicator datasourcehealthindicator() {     return new datasourcehealthindicator(datasource, "select 1 dual"); } 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -