私は滑らかなpostgresで簡単な再生2.5アプリケーションを設定しようとしていますが、エラーが発生していないようです。
私は取得していますエラーは、私がslick.driver.PostgresDriver
にslick.dbs.default.driver
を変更した場合、私は私の依存関係postgresドライバで滑らかなデータベース設定の問題を再生
"com.typesafe.play" %% "play-slick" % "2.1.0",
"com.typesafe.slick" %% "slick-codegen" % "3.1.1",
"com.github.tminglei" %% "slick-pg" % "0.15.0-RC", //"0.14.6",
"org.postgresql" % "postgresql" % "42.0.0"
の私application.conf
slick.dbs.default {
driver = "slick.jdbc.PostgresProfile"
db = {
driver = "org.postgresql.Driver"
user = postgres
host = localhost
port = 5432
password = ""
host = ${?EVENTUAL_DB_HOST}
port = ${?EVENTUAL_DB_PORT}
user = ${?EVENTUAL_DB_USER}
password = ${?EVENTUAL_DB_PW}
url = "jdbc:postgresql://"${slick.dbs.default.db.host}":"${slick.dbs.default.db.port}"/"${slick.dbs.default.db.user}
}
}
及びこれらに次のように持って
[error] p.a.d.s.DefaultSlickApi - Failed to create Slick database config for key default.
slick.SlickException: Error getting instance of profile "slick.jdbc.PostgresProfile"
...
Caused by: java.lang.InstantiationException: slick.jdbc.PostgresProfile
...
Caused by: java.lang.NoSuchMethodException: slick.jdbc.PostgresProfile.<init>()
...
です(これは明らかに廃止されました)私は得る
[error] p.a.d.s.DefaultSlickApi - Failed to create Slick database config for key default.
slick.SlickException: Error getting instance of profile "slick.driver.PostgresDriver"
...
Caused by: java.lang.ClassNotFoundException: slick.driver.PostgresDriver
...
私はここで私の髪を引っ張っていて、見るべき他の資源を見つけることはできません。誰が何が起こっているか考えているのですか?
おそらく 'slick.dbs.default.driver =" slick.driver.PostgresDriver $ "'ではなく 'Profile'ですか? –
@ insan-e申し訳ありません私はそこにタイプミスがありました。私は 'slick.driver.PostgresDriver'を試していましたが、' slick.driver.PostgresDriver $ 'も同じ結果で試してみたと思いますが、場合。 – kag0
@ insan-e whelp、戻り、 'slick.jdbc.PostgresProfile $'で試してみました。回答を提出したい場合はそれを受け入れます。それ以外の場合は、後で自分で回答します。 – kag0