这是我的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:未解析的依赖项: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
有人可以指点我的方向吗?