我试图在这里遵循播放框架 ebean 教程:
http://www.playframework.com/documentation/2.1.2/JavaEbean
但是,当我尝试包含 play.db.ebean.* 并尝试编译时,找不到包(没有 play.db 包)。我已将 ebean.default="models.*" 添加到我的 application.conf
我还需要做些什么来获得依赖关系吗?例如,是否有与 play 1.2 中的 play deps 等价的东西?
痕迹:
[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
干杯 NFV