質問するログイン新規登録

質問編集履歴

1

修正

2021/05/12 07:46

投稿

taka3344
taka3344

スコア8

title CHANGED
File without changes
body CHANGED
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  @PostMapping
38
- String postRegiste(@RequestParam(name = "questionId", required = false) String q) {
38
+ String postRegiste(@RequestParam(name = "question", required = false) String q) {
39
39
  System.out.println(q);
40
40
  if (q != null) {
41
41
  int id = Integer.parseInt(q);
@@ -88,7 +88,7 @@
88
88
  </a>
89
89
  <form th:action="@{/delete}" method="post">
90
90
  <input type="submit" value="削除" >
91
- <input type="button" name="questionId" th:value="${question.id}" readonly>
91
+ <input type="button" name="question" th:value="${question.id}" readonly>
92
92
  </form>
93
93
  </div>
94
94
  </div>