스프링 컨트롤러
= 핸들러
핸들러 매핑 전략
: 사용자 요청을 어떤 핸들러에게 작업 위임할지 결정
해당 컨트롤러 오브젝트 메소드 호출로만 요청 전달
핸들러 어댑터 전략
InternalResourceViewResolver
에 뷰 요청InternaResourceViewResolver
ThymleafResolver
implementation "javax.servlet:jstl";
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
implements "org.springframework.boot:spring-boot-starter-thymeleaf"
Introduction to Using Thymeleaf in Spring | Baeldung
th:object 로 선택한 객체 한해 필드 접근 가능
<tr th:each="customer: ${customers}" th:object="${customer}" >
<td th:text="${customer.customerId}"></td>
<td th:text="*{name}"></td>
<td th:text="*{email}"></td>
<td th:text="*{createdAt}"></td>
<td th:text="*{lastLoginAt}"></td>
</tr>