我是第一次尝试设置 Play 项目,但我已经卡住了! 事实上,当我运行应用程序时,只要我尝试调用“http://localhost:9000/”,就会得到这个异常:
java.sql.SQLTransientConnectionException: db - Connection is not available, request timed out after 1004ms
我也每 2 秒在日志中记录一次:
[error] c.z.h.p.PoolBase - db - Failed to execute isValid() for connection, configure connection test query. (Method org.postgresql.jdbc4.Jdbc4Connection.isValid(int) is not yet implemented.)
这就是我所做的:
代码端我刚刚创建了一个类 DAO 来添加、删除和列出用户表的记录,并从 Controller 调用了“添加”方法。
我希望我提供了足够的细节
最佳答案
关于postgresql - 如何使用 Postgresql 设置 Play Slick,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48628893/