安装play的postgresql!框架(未找到驱动程序:[org.postgresql.Driver])

问题描述 投票:13回答:1

我是这部戏的新手!框架和postgresql,我正在尝试使其工作。

我读了很多关于stackoverflow的问题,我在google上搜索了很多,但是我没有设法使它起作用。

这里是Play的错误!给我:

Driver not found: [org.postgresql.Driver] 

我的问题是:

1)您知道一个简单的教程(即从一开始就说明了),该教程显示了如何配置播放!使postgresql工作?我读了很多东西,但没有找到详细的教程。

2)如果不是,这是我的配置:

我在application.conf中添加了此内容:

db.default.driver=org.postgresql.Driver
db.default.url="jdbc:postgresql://127.0.0.1/postgres"
db.default.user=postgres
db.default.password=root

并且在built.sbt中:

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
)  

我在做什么错?

我是这部戏的新手!框架和postgresql,我正在努力使其正常工作。我读了很多关于stackoverflow的问题,我在Google上搜索了很多,但是我没有设法使它起作用。 ...

postgresql playframework
1个回答
23
投票

正如文档所述,您必须将驱动程序添加到依赖项中:

© www.soinside.com 2019 - 2024. All rights reserved.