出现这个报错的话,请大家注意yml中的配置
spring:
datasource:
url: jdbc:oracle:thin:@
username:
password:
driver-class-name:oracle.jdbc.OracleDriver
filters: stat
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x' from dual //关键是这一行 mysql的话是select ‘x’ oracle则是select ‘x’ from dual
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20