Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/hello/hellospring/controller/MemberForm.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package hello.hellospring.controller; | ||
|
||
public class MemberForm { | ||
private String name; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/resources/templates/members/createMemberForm.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE HTML> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<body> | ||
<div class="container"> | ||
<form action="/members/new" method="post"> | ||
<div class="form-group"> | ||
<label for="name">이름</label> | ||
<!-- /name -> key --> | ||
<input type="text" id="name" name="name" placeholder="이름을 | ||
입력하세요"> | ||
</div> | ||
<button type="submit">등록</button> | ||
</form> | ||
</div> <!-- /container --> | ||
</body> | ||
</html> |