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

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -