user, jsp -> html , test

pull/4/head
shengzhaoli.shengz 2023-10-16 15:04:08 +08:00
parent 44d6854c4b
commit 9ab182e476
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ public class UserRowMapper implements RowMapper<User> {
user.lastLoginTime(rs.getTimestamp("last_login_time"));
//v3.0.0 added
user.address(rs.getString("address"));
user.address(rs.getString("nickname"));
user.nickname(rs.getString("nickname"));
user.enabled(rs.getBoolean("enabled"));
user.updatedAt(rs.getLong("updated_at"));

View File

@ -15,7 +15,7 @@
<h2>Add User</h2>
<form th:object="${formDto}" class="form-horizontal" th:method="post">
<form th:object="${formDto}" th:action="@{plus}" class="form-horizontal" th:method="post">
<div class="form-group">
<label class="col-sm-2 control-label">Username<em class="text-danger">*</em></label>
@ -88,7 +88,7 @@
<label class="col-sm-2 control-label">Nickname</label>
<div class="col-sm-10">
<input th:name="nickname" class="form-control" placeholder="Type nickname" th:field="*{nickname}"/>
<input th:name="nickname" class="form-control" placeholder="Type nickname" th:field="*{nickname}"/>
<p class="help-block">User nickname, optional.</p>
</div>
@ -97,7 +97,7 @@
<label class="col-sm-2 control-label">Address</label>
<div class="col-sm-10">
<input th:name="address" class="form-control" placeholder="Type address" th:field="*{address}"/>
<input th:name="address" class="form-control" placeholder="Type address" th:field="*{address}"/>
<p class="help-block">User address, optional.</p>
</div>