3

I'm trying to learn play, doing the tutorial in http://www.playframework.com/documentation/2.2.x/ScalaTodoList

The problem I have is the the file project/Build.scala is not created for me. Should I create it manually?

thanks.

4

1 回答 1

6

我们更新了 Play 以使用新的构建文件格式,但我们错过了文档中的那段代码。如果您现在转到该页面,您应该会发现它具有正确的代码。

要回答您的问题,您需要通过build.sbt以下更新来添加 postgresql 依赖项:

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  "postgresql" % "postgresql" % "8.4-702.jdbc4"
)
于 2013-09-23T06:33:25.830 回答