Im trying to connect to the Postgresql using play frame work. I tried Everything but I still cant solve this problem
db.default.user=user
db.default.password=qwe
In file application.conf:
db.default.driver=org.postgresql.Driver
db.default.url="jdbc:postgresql://localhost:5432/dataBaseName"
db.default.user=user
db.default.password="password"
create the path /lib in your main project (/) and should add the .jar do postgresql.
Download here, and after reload the project.
Or then add this code in build.sbt:
libraryDependencies ++= Seq(
"org.postgresql" % "postgresql" % "9.2-1003-jdbc4",
javaJdbc,
javaEbean,
cache,
javaWs
)