数据库连接池的连接超出等待时间时,该连接第一次操作会报异常

2018-08-06  本文已影响6人  plugins

The last packet successfully received from the server was 1,463,838 milliseconds ago. The last packet sent successfully to the server was 1,463,839 mill

iseconds ago. is longer than the server configured value of 'wait_timeout'

解决方案

oracle数据源:

数据源配置添加如下配置

validationQueryTimeout,validationQuery ,testWhileIdle=true,例如下方:

上一篇下一篇

猜你喜欢

热点阅读