回答編集履歴
1
調整
test
CHANGED
@@ -36,7 +36,9 @@
|
|
36
36
|
|
37
37
|
public String delete(@ModelAttribute Student student) {
|
38
38
|
|
39
|
-
userService.delete(student.getStudent
|
39
|
+
userService.delete(student.getStudentName());
|
40
|
+
|
41
|
+
// GetterをgetStudent_nameと定義している場合は、student.getStudent_name()
|
40
42
|
|
41
43
|
return "redirect:/index/studentlist";
|
42
44
|
|