我使用的Scala带有play和slick。
scalaVersion := "2.13.10"
libraryDependencies += guice
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "5.1.0" % Test
libraryDependencies += "org.postgresql" % "postgresql" % "42.5.0"
libraryDependencies += "com.typesafe.play" %% "play-slick" % "5.1.0"
在我application.conf中:
slick.dbs.default.profile = "slick.jdbc.PostgresProfile$"
slick.dbs.default.db.driver = "org.postgresql.Driver"
slick.dbs.default.db.url = "postgresql-stevapp.alwaysdata.net:5432"
slick.dbs.default.db.user = "XXXX"
slick.dbs.default.db.password="YYYYY"
我得到这个错误
1条答案
按热度按时间am46iovg1#
URL应该是
jdbc:postgres://postgresql-stevapp.alwaysdata.net:5432/mydb?someParam=someValue
的JDBC URL。