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不起作用?我的错误是什么