dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' // Thymeleaf Template
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect' // Thymeleaf Layout
}
html 자체에 text로 자바 객체/변수 값을 사용
ex) <div>[[answer.title]]</div>"
요소의 text에 자바 객체/변수 값을 사용
ex) <div th:text="${answer.title}></div>"
#
으로 시작한다.${#lists.size(question.answerList)}
#lists.size(..)
: 컬렉션의 요소 개수{#temporals.format(날짜 객체, 포맷)
: 날짜와 시간을 포맷팅<span th:text="|welcome ${@rq.member.username}|"></span>