공부
[thymeleaf] layout:decorator & layout:decorate
승가비
2024. 1. 6. 00:45
728x90
implementation("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="fragments/default">
https://okky.kr/questions/1132029
OKKY - thymeleaf - layout:decorator 가 제대로 작동하지 않습니다.
layout 폴더에 만들어둔 defaultLayout 만 따로 실행했을땐 분명 내부에 집어넣은 fragment 들도 다 잘 작동하는데, 이상하게 index2.html에서 layout:decorator="layout/defaultLayout" 를 html 태그 안에 넣고 실행했을
okky.kr
728x90