質問編集履歴

1

クラス定義部分を追加

2020/08/04 01:19

投稿

hamunbo
hamunbo

スコア10

test CHANGED
File without changes
test CHANGED
@@ -16,17 +16,25 @@
16
16
 
17
17
 
18
18
 
19
- @RequestMapping(method = RequestMethod.GET)
19
+ @RestController
20
20
 
21
- public ResponseEntity<ResponseBean> getItems(@RequestHeader HashMap<String, String> headerMap
21
+ @RequestMapping(value = "/test")
22
22
 
23
- ,@Valid @Size(min=2, max=2) @RequestParam(required = true) String code) {
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