質問編集履歴

2

controller編集

2018/12/17 12:10

投稿

takahiro00
takahiro00

スコア84

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, BindingResult bindingResult) {
109
+ public ModelAndView userAddInsert(@Valid @ModelAttribute UserAdd userAdd, BindingResult bindingResult, ModelAndView mav, Principal principal) {
110
110
 
111
111
 
112
112
 

1

htmlに誤りがあったため編集

2018/12/17 12:10

投稿

takahiro00
takahiro00

スコア84

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 adress;
209
+ private String username;
210
-
211
-
212
-
210
+
211
+
212
+
213
- public String getAdress() {
213
+ public String getUsername() {
214
-
214
+
215
- return adress;
215
+ return username;
216
216
 
217
217
  }
218
218
 
219
- public void setAdress(String adress) {
219
+ public void setUsername(String username) {
220
-
220
+
221
- this.adress = adress;
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="password" name="passwordLiv"
261
+ <input type="text" name="username"
262
262
 
263
263
  required="required" autofocus="autofocus"><br>
264
264