1.原因
hikari 连接池配置错误,mysql和oracle的配置不一样
2.修改
spring:
datasource:
hikari:
connection-test-query: select 1
修改为
spring:
datasource:
hikari:
connection-test-query: select 1 from dual
各个数据库的配置:
DataBase validationQuery hsqldb select 1 from INFORMATION_SCHEMA.SYSTEM_USERS Oracle select 1 from dual DB2 select 1 from sysibm.sysdummy1 MySql select 1 Microsoft SqlServer select1 postgresql select version() ingres select 1 derby values 1 H2 select 1