私は持っている:
- 主なプロジェクト
- 「ショッピング」というサブプロジェクト
サブプロジェクト内のメイン プロジェクトのビューを使用したいと思います。サブプロジェクトコントローラーの私のコード:
package controllers.shopping;
public class Application extends Controller {
public static Result index() {
return ok(views.html.confirmation.render("ok"));
}
}
そして私のメインビルドファイル
lazy val shopping = project.in(file("modules/shopping"))
val main = project.in(file("."))
.dependsOn(shopping).aggregate(shopping)
サブモジュール共通の私のモデルクラス:
@Entity
public class AppMode {
public static AppMode getCurrentConfigurationEntry() {
return JPA.em().find(AppMode.class, 1L);
}
}