티스토리 뷰

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

'공부' 카테고리의 다른 글

[spring boot] ajp  (0) 2024.01.06
[thymeleaf] text & utext  (0) 2024.01.06
[tomcat] context.xml  (0) 2024.01.06
[python] image resize code  (1) 2024.01.06
[spring] jasypt  (0) 2024.01.06
댓글