I cannot configure my Play framework PostgreSQL connection with regular string like below:
db.default.driver=org.postgresql.Driver
db.default.url="postgres://localhost:5432/mydb"
I get the error "Cannot connect to database [default]".
It works if I change the URL to:
db.default.url="jdbc:postgresql://localhost:5432/mydb"
But I would like to stick with the former version as the environment is already configured with such variable.
I'm using the latest Play (2.3.8) with Java 1.8 and the following JDBC driver:
libraryDependencies += "org.postgresql" % "postgresql" % "9.4-1201-jdbc4"
It looks like working if the connection string contains the username / password information:
db.default.url="postgres://postgres:postgres@localhost:5432/mydb"
Is it a limitation or am I missing something?