From ea2a09cbf610fc3403dd81319520adceb69e0dce Mon Sep 17 00:00:00 2001 From: Johannes Stelzer Date: Fri, 27 Feb 2015 08:57:06 +0100 Subject: [PATCH] Add DB2 specific health query Closes gh-2565 --- .../boot/actuate/health/DataSourceHealthIndicator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java index 1cfc68f15c..644b6a3f99 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java @@ -58,6 +58,7 @@ public class DataSourceHealthIndicator extends AbstractHealthIndicator implement + "INFORMATION_SCHEMA.SYSTEM_USERS"); queries.put("Oracle", "SELECT 'Hello' from DUAL"); queries.put("Apache Derby", "SELECT 1 FROM SYSIBM.SYSDUMMY1"); + queries.put("DB2", "SELECT 1 FROM SYSIBM.SYSDUMMY1"); PRODUCT_SPECIFIC_QUERIES = Collections.unmodifiableMap(queries); }