質問編集履歴
1
クラス定義部分を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,17 +16,25 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
@Re
|
19
|
+
@RestController
|
20
20
|
|
21
|
-
|
21
|
+
@RequestMapping(value = "/test")
|
22
22
|
|
23
|
-
|
23
|
+
public class TestController {
|
24
24
|
|
25
|
+
@RequestMapping(method = RequestMethod.GET)
|
25
26
|
|
27
|
+
public ResponseEntity<ResponseBean> getItems(@RequestHeader HashMap<String, String> headerMap
|
26
28
|
|
27
|
-
|
29
|
+
,@Valid @Size(min=2, max=2) @RequestParam(required = true) String code) {
|
28
30
|
|
31
|
+
|
29
32
|
|
33
|
+
~処理内容~
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
}
|
30
38
|
|
31
39
|
}
|
32
40
|
|