[Maven] - pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
[Gradle] - build.gradle
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf’
application.properties
# thymeleaf 접두사, 접미사 설정
#미작성 시 기본값
#spring.thymeleaf.prefix=classpath:/templates/
#spring.thymeleaf.suffix=.html
<html lang="en" xmlns:th="http://www.thymeleaf.org">
th 속성을 사용하기 위해 선언된 네임스페이스 순수 HTML로만 이루어진 페이지의 경우, 선언하지 않아도 무관
${key}
: 변수, Model 등으로 전달된 데이터의 key 입력 시 value 풀력
<p th:text=${member}></p>
<p th:text=${member.memberNo}</p>