ํฐ์คํ ๋ฆฌ ๋ทฐ
๋ฐ์ํ
SampleController.java
1
2
3
4
5
6
7
8
9
10
11
12
|
@GetMapping("/sample3")
public void sample3(Model model) {
List<MemberVO> list = new ArrayList<>();
for (int i = 0; i < 10; i++) {
list.add(new MemberVO(i, "user0"+i, "userpw0"+i
, "๊นํ
์คํธ"+i, new Timestamp(System.currentTimeMillis())));
}
model.addAttribute("list", list);
}
|
sample3.html
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
32
33
|
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Thymeleaf3</title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
</head>
<body>
<!-- HTML ์ฃผ์ -->
<!--/* ํ์๋ฆฌํ ์ฃผ์ */-->
<!-- /* th:with๋ ํด๋น ์์์์์ ์ฌ์ฉํ ๋ณ์๋ฅผ ์ ์ธํ๋ ์์ฑ์
๋๋ค. */ -->
<!-- /*<c:set var="target" value="user03"/> */ -->
<table border="1" th:with="target = 'user03'">
<tr>
<td>์์ด๋</td>
<td>์ด๋ฆ</td>
<td>๋ฑ๋ก์ผ</td>
</tr>
<tr th:each="m : ${list}">
<td>
<p th:if="${m.memberId == target}">BLIND</p>
<p th:if="${m.memberId != target}">[[${m.memberId}]]</p>
</td>
<td th:text="${m.memberName}"></td>
<td>[[${m.regDate}]]</td>
</tr>
</table>
</body>
</html>
|
์คํ ๊ฒฐ๊ณผ
๋ฐ์ํ
'(๊ตฌ)Spring' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Spring] ํ๋ก์ ํธ ์ค์ (0) | 2020.06.13 |
---|---|
[Springboot&AWS] ์คํ๋ง๋ถํธ์ AWS๋ก ํผ์ ๊ตฌํํ๋ ์น ์๋น์ค (0) | 2020.05.26 |
[์คํ๋ง๋ถํธ] ํ์๋ฆฌํ ๊ฐ์ฒดํํ (0) | 2019.07.17 |
[์คํ๋ง๋ถํธ] ํ์๋ฆฌํ ์๋์์ฑ ์ค์น (0) | 2019.07.16 |
[์คํ๋ง๋ถํธ] ํ์๋ฆฌํ (thymeleaf) (0) | 2019.07.16 |
๋๊ธ
๊ณต์ง์ฌํญ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
- Total
- Today
- Yesterday
๋งํฌ
TAG
- Java
- tomcat์ค์น
- ์๋ฐ
- java ํ๊ฒฝ๋ณ์
- mysql์ค์น
- ๊ฒ์ํ ์ญ์
- ์คํ๋ง๋ถํธ ์๋์์ฑ
- ์ ์ฒด๊ฒ์๋ฌผ ์กฐํ
- ๊ฐ๋ฐํ๊ฒฝ๊ตฌ์ถ
- ๊ฐ๋ฐ
- ๊ฒ์๋ฌผ ์ญ์
- ์จ๋ฆฌ์์ค
- ๋ณ๋ช ์ฒ๋ฆฌ
- ๊ฒ์ํ ์กฐํ
- ์๋ฃ๊ตฌ์กฐ
- Algorithm
- java jdk ์ค์น
- ๊ฒ์ํ๋ง๋ค๊ธฐ
- ์ดํด๋ฆฝ์ค ํ๊ธ ์ธ์ฝ๋ฉ
- ์ดํด๋ฆฝ์ค ์ค์น
- ๊ฒ์๋ฌผ์กฐํ
- ๋ถํธ ์๋์์ฑ
- typeAliases
- ์๊ณ ๋ฆฌ์ฆ
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๊ธ ๋ณด๊ดํจ