본문 바로가기

프로그래밍/Spring

[Spring Boot] 2.x 로 변경했을 때, Thymeleaf layout이 404일 경우

1. thymeleaf-layout-dialect 추가(관련 글)

 1) 기존

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

 2) 변경

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>nz.net.ultraq.thymeleaf</groupId>
<artifactId>thymeleaf-layout-dialect</artifactId>
</dependency>