매끄럽고 포스트그레스로 간단한 재생 2.5 응용 프로그램을 설정하려고하는데 오류가 발생하지 않는 것 같습니다. 내가 갖는
오류가 나는 내가 slick.dbs.default.driver
slick.driver.PostgresDriver
을 변경하면 내 종속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