Build.scala is not created in play

2019-02-15 08:23发布

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.

1条回答
Deceive 欺骗
2楼-- · 2019-02-15 08:42

We updated Play to use a new build file format, but we missed that piece of code in the documentation. If you go to that page now, you should find it has the correct code.

To answer your question, you need to add the postgresql dependency by updating build.sbt with the following:

libraryDependencies ++= Seq(
  jdbc,
  anorm,
  cache,
  "postgresql" % "postgresql" % "8.4-702.jdbc4"
)
查看更多
登录 后发表回答