播放2.1.3中找不到play.db包

nfv*_*loo 5 ebean playframework-2.0

我试图在这里遵循播放框架ebean教程:

http://www.playframework.com/documentation/2.1.2/JavaEbean

但是,当我尝试包含play.db.ebean.*并尝试编译时,找不到包(没有play.db包).我已将ebean.default ="models.*"添加到我的application.conf中

我还需要做些什么来获得依赖吗?例如,有没有相当于玩游戏1.2的游戏?

追踪:

[error] /home/nfv/workspace-scala/scims/app/models/Person.scala:3: object db is not a member of package play
[error] import play.db.ebean.Model;
[error]             ^
[error] /home/nfv/workspace-scala/scims/app/models/Person.scala:5: not found: type Model
[error] class Person extends Model {
[error]                      ^
[error] two errors found
[error] (compile:compile) Compilation failed
[error] Total time: 4 s, completed 09-Sep-2013 11:23:00
Run Code Online (Sandbox Code Playgroud)

干杯NFV

mgu*_*min 2

这可能是因为您的Build.scala文件中缺少依赖项。

要使用 Ebean,它应该包含对javaEbean. 前任 :

val appDependencies = Seq(
  jdbc,
  javaEbean,
  ...)
Run Code Online (Sandbox Code Playgroud)

添加依赖项后,从播放控制台运行reload和。update