thymeleaf 의 layout:decorate 가 동작하지 않을 때는
보통 spring-boot-starter-thymeleaf 의존성 하나만 추가되어 있을 확률이 높습니다.
이 경우 thymeleaf-layout-dialect 의존성을 추가하면 잘 동작합니다.
<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>
'프로그래밍' 카테고리의 다른 글
네이버클라우드 - SourcePipeline 사용하기 (0) | 2023.06.14 |
---|---|
Springboot - TemplateInputException (Error resolving templete 오류) (0) | 2023.06.07 |
Springboot 와 Elasticsearch 연동하기 (0) | 2023.06.02 |
Gitbook Init 오류 - cb.apply is not a function (0) | 2023.04.13 |
[K8S] Ingress 에서 다른 Namespace 의 Service 연결 (0) | 2023.04.11 |