質問編集履歴
2
controller編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
|
107
107
|
@RequestMapping(value = "user_add_insert", method = RequestMethod.POST)
|
108
108
|
|
109
|
-
public ModelAndView userAddInsert(@Valid @ModelAttribute UserAdd userAdd, ModelAndView mav, Principal principal
|
109
|
+
public ModelAndView userAddInsert(@Valid @ModelAttribute UserAdd userAdd, BindingResult bindingResult, ModelAndView mav, Principal principal) {
|
110
110
|
|
111
111
|
|
112
112
|
|
1
htmlに誤りがあったため編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -206,19 +206,19 @@
|
|
206
206
|
|
207
207
|
@Pattern(regexp = "^([\w])+([\w\._-])*\@([\w])+([\w\._-])*\.([a-zA-Z])+$")
|
208
208
|
|
209
|
-
private String a
|
209
|
+
private String username;
|
210
|
-
|
211
|
-
|
212
|
-
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
-
public String get
|
213
|
+
public String getUsername() {
|
214
|
-
|
214
|
+
|
215
|
-
return a
|
215
|
+
return username;
|
216
216
|
|
217
217
|
}
|
218
218
|
|
219
|
-
public void set
|
219
|
+
public void setUsername(String username) {
|
220
|
-
|
220
|
+
|
221
|
-
this.a
|
221
|
+
this.username = username;
|
222
222
|
|
223
223
|
}
|
224
224
|
|
@@ -256,9 +256,9 @@
|
|
256
256
|
|
257
257
|
<form method="post" th:action="@{/user_add_insert}" th:object="${userAdd}">
|
258
258
|
|
259
|
-
|
259
|
+
メールアドレス:
|
260
|
-
|
260
|
+
|
261
|
-
<input type="
|
261
|
+
<input type="text" name="username"
|
262
262
|
|
263
263
|
required="required" autofocus="autofocus"><br>
|
264
264
|
|