Build.scala不在游戏中创建 [英] Build.scala is not created in play

查看:74
本文介绍了Build.scala不在游戏中创建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试学习游戏,请在 http://www中进行教程. playframework.com/documentation/2.2.x/ScalaTodoList

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

我遇到的问题是没有为我创建文件project/Build.scala.我应该手动创建它吗?

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

谢谢.

推荐答案

我们更新了Play,使其使用新的构建文件格式,但是我们错过了文档中的那段代码.如果您现在转到该页面,则应该找到正确的代码.

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.

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

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"
)

这篇关于Build.scala不在游戏中创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆