spring boot + mybatis 连接 oracle 出现 ORA-00923: 未找到要求的 FROM 关键字 错误
作者:互联网
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
标签:spring,boot,hikari,dual,test,query,00923,select 来源: https://www.cnblogs.com/lishuaiqi/p/11490352.html