Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- import
- xargs
- IntelliJ
- VirtualBox
- netsh
- vscode
- ssh
- resource
- 네트워크
- 줄바꿈 문자
- Eclipse
- plugin
- tomcat
- Windows 10
- bash
- port
- web.xml
- find
- 단축키
- Quartz
- JavaScript
- Windows
- profile
- Source
- GIT
- Mac
- maVen
- grep
- lsof
- context
Archives
- Today
- Total
develog
[spring boot] Thymeleaf, form 본문
// Controller
model.addAttribute("user", new User());
방법1
<form>
<input type="text" th:field="${user.userId}">
<input type="text" th:field="${user.userPw}">
</form>
방법2
<form th:object="${user}">
<input type="text" th:field="*{userId}">
<input type="text" th:field="*{userPw}">
</form>
Comments