回答編集履歴
2
Sampleをobjectからclassに変更しました。
test
CHANGED
@@ -28,7 +28,9 @@
|
|
28
28
|
|
29
29
|
def index = Action {
|
30
30
|
|
31
|
+
val sample = new Sample()
|
32
|
+
|
31
|
-
Ok(views.html.index("Hello Play Framework: message=" +
|
33
|
+
Ok(views.html.index("Hello Play Framework: message=" + sample.exec()))
|
32
34
|
|
33
35
|
}
|
34
36
|
|
@@ -36,7 +38,7 @@
|
|
36
38
|
|
37
39
|
|
38
40
|
|
39
|
-
|
41
|
+
class Sample extends MyServiceModuleInjector {
|
40
42
|
|
41
43
|
def exec(): String = {
|
42
44
|
|
1
微修正しました。
test
CHANGED
@@ -8,11 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
まずは
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- `controllers
|
11
|
+
- `controllers/Application.scala`
|
16
12
|
|
17
13
|
|
18
14
|
|