调用接口成功后,隔很久时间在调用,大概1个小时后,然后就会调用报错。百度了 感觉是连接池的超时问题,但是按照配置后也还是会出现,不知道怎么解决了!!(商业版用户)

Blade 未结 1 3134
threwException
threwException 剑童 2019-07-18 10:41

[  XNIO-1 task-5] com.zaxxer.hikari.pool.PoolBase          : HikariPool-2 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@4ddfdf51 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value.

1条回答
  • 2019-07-20 00:05

    需要调高一下 hikari maxLifetime的值,目前最新版改成druid了,可以尝试下看看

    0 讨论(0)
提交回复