设置connectionPool Slick 3.2.0不起作用?

时间:2018-07-24 18:10:07

标签: postgresql scala database-connection connection-pooling slick

im设置光滑的数据库配置

mydb={
connectionPool = HikariCP
keepAliveConnection = true
url="jdbc:postgresql://localhost/mdb?user=postgres&password=???"
driver="org.postgresql.Driver"

}

和我的sbt文件使用在Maven Central上发布的库

"com.typesafe.slick" %% "slick" % "3.2.0",
"com.typesafe.slick" %% "slick-hikaricp" % "3.2.0",

一段时间后运行程序时 我有错误:

java.sql.SQLTransientConnectionException: mydb - Connection is not available, request timed out after 1000ms

因为connectionPool不起作用?我的错误是什么

enter image description here

0 个答案:

没有答案