ํฐ์คํ ๋ฆฌ ๋ทฐ
๋ฐ์ํ
์๋ก์ด ํด๋์ค ์์ฑ
MemberVO.java ์์ค์ฝ๋
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package com.springboot.boot03.sample.model;
import java.sql.Timestamp;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor //๋ชจ๋ ํ๋๋ฅผ ํ๋ผ๋ฏธํฐ๋ฅผ ํตํด ์ด๊ธฐํํ๋ ์์ฑ์
@NoArgsConstructor //๊ธฐ๋ณธ ์์ฑ์ ์ ์ธ
public class MemberVO {
private Integer memberNo;
private String memberId;
private String memberPw;
private String memberName;
private Timestamp regDate;
}
|
sample2.html ์์ค์ฝ๋
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<!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>
<h1>Sample2 ํ์ด์ง์
๋๋ค.</h1>
<h2 th:text="${member}"></h2>
<div th:text="${'์ด๋ฆ: ' + member.memberName}"></div>
<div>์์ด๋: [[${member.memberId}]]</div>
<div th:utext="${'<h3>' + member.memberId + '</h3>'}"></div>
<div><h3>[[${member.memberId}]]</h3></div>
</body>
</html>
|
SampleController.java
1
2
3
4
5
6
7
8
9
|
@GetMapping("/sample2")
public void sample2(Model model) {
MemberVO member = new MemberVO(
100, "abc1234", "aaa1234!", "๊น์ฒ ์",
new Timestamp(System.currentTimeMillis())
);
model.addAttribute("member", member);
}
|
๊ฒฐ๊ณผํ์ด์ง
๋ฐ์ํ
'(๊ตฌ)Spring' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Springboot&AWS] ์คํ๋ง๋ถํธ์ AWS๋ก ํผ์ ๊ตฌํํ๋ ์น ์๋น์ค (0) | 2020.05.26 |
---|---|
[์คํ๋ง๋ถํธ] ํ์๋ฆฌํ ๋ฆฌ์คํธ์ ๊ฐ์ฒดํํ (0) | 2019.07.17 |
[์คํ๋ง๋ถํธ] ํ์๋ฆฌํ ์๋์์ฑ ์ค์น (0) | 2019.07.16 |
[์คํ๋ง๋ถํธ] ํ์๋ฆฌํ (thymeleaf) (0) | 2019.07.16 |
[์คํ๋ง๋ถํธ] ๋ถํธ์์ JSP์ ๋ง์ด๋ฐํฐ์ค ์ฌ์ฉํ๊ธฐ (0) | 2019.07.16 |
๋๊ธ
๊ณต์ง์ฌํญ
์ต๊ทผ์ ์ฌ๋ผ์จ ๊ธ
์ต๊ทผ์ ๋ฌ๋ฆฐ ๋๊ธ
- Total
- Today
- Yesterday
๋งํฌ
TAG
- Java
- ์๊ณ ๋ฆฌ์ฆ
- ๊ฐ๋ฐ
- ๋ณ๋ช ์ฒ๋ฆฌ
- ์ดํด๋ฆฝ์ค ์ค์น
- ์จ๋ฆฌ์์ค
- ์๋ฃ๊ตฌ์กฐ
- ์ ์ฒด๊ฒ์๋ฌผ ์กฐํ
- ์๋ฐ
- mysql์ค์น
- ๊ฒ์ํ ์กฐํ
- typeAliases
- ๊ฒ์ํ๋ง๋ค๊ธฐ
- ๊ฒ์ํ ์ญ์
- tomcat์ค์น
- ์ดํด๋ฆฝ์ค ํ๊ธ ์ธ์ฝ๋ฉ
- java ํ๊ฒฝ๋ณ์
- ๊ฐ๋ฐํ๊ฒฝ๊ตฌ์ถ
- ๊ฒ์๋ฌผ์กฐํ
- Algorithm
- ๋ถํธ ์๋์์ฑ
- ์คํ๋ง๋ถํธ ์๋์์ฑ
- ๊ฒ์๋ฌผ ์ญ์
- java jdk ์ค์น
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 |
๊ธ ๋ณด๊ดํจ