无法连接数据库 - Postgres

时间:2018-02-10 19:14:47

标签: postgresql playframework

当我运行localhost Play服务器时,我收到消息: 无法连接到数据库[默认]。

我的build.sbt:

name := """myFirstProj"""

version := "1.0-SNAPSHOT"

lazy val root = (project in file(".")).enablePlugins(PlayJava, PlayEbean)

scalaVersion := "2.11.7"

libraryDependencies += guice
libraryDependencies ++= Seq(
javaJdbc,
cache,
"org.postgresql" % "postgresql" % "42.1.3.jre7",
javaWs)

我的申请表:

db.default.driver="org.postgresql.Driver"
db.default.url="jdbc:postgresql://localhost:5432/postgres"
default.username = postgres  
default.password = "XXXX"

我的posgres \ conninfo

You are connected to database "postgres" as user "postgres" on host "localhost" at port "5432".

0 个答案:

没有答案