Error

DruidDataSource.validationQueryCheck(DruidDataSource.java1188) testWhileIdle is true, validationQuery not set

Solution

Change the configuration of validation-query. Such as SELECT 1