【发布时间】:2016-02-11 06:08:19
【问题描述】:
这是我的 postgres 版本postgresql/9.4.1
这是我的播放版本addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.6")
这是我的libraryDependencies
libraryDependencies ++= Seq(
jdbc,
cache,
ws,
specs2 % Test,
"postgresql" % "postgresql" % "9.1-901-1.jdbc4"
)
将版本更改为9.4-1201-jdbc41 会得到sbt.ResolveException: unresolved dependency: postgresql#postgresql;9.4-1201-jdbc41: not found
这是我的 application.conf
db.default.driver=org.postgresql.Driver
# I tried the following combination
#db.default.url="postgres://user:pass@localhost/20160210_scala_play"
# And
db.default.url="jdbc:postgresql://localhost/20160210_scala_play"
db.default.user="user"
db.default.password="pass"
所有结果
`Cannot connect to database`
我验证了
psql \list
确实包含
20160210_scala_play
user=user password=password
谁能给我指个方向?
【问题讨论】:
标签: postgresql scala jdbc playframework