HikariPool-1 - Connection is not available, request timed out after 30000ms for very tiny load server

后端 未结 2 1372
醉酒成梦
醉酒成梦 2020-12-29 10:03

I have a small Java application for testing purposes. I have moved to hikari recently. What I notice is that I keep getting this error.

java.sql.SQLTransient         


        
2条回答
  •  时光取名叫无心
    2020-12-29 10:42

    I am using spring boot and I was facing the same problem, and my solution was to get the connection like this "DataSourceUtils.getConnection(dataSource)". So I change from dataSource.getConnection() to DataSourceUtils.getConnection(dataSource).

提交回复
热议问题