본문 바로가기
반응형
Front-End/Thymeleaf(eng)

thymeleaf html layout:decorate doesn't work

by brightGarden02 2022. 12. 2.
<html layout:decorate="~{layout}" xmlns:layout="http://www.w3.org/1999/xhtml">

I applied a layout at the top of signup_form.html

 

 

But

The layout didn't work.

 

 

 

Because thymeleaf-layout-dialect library was missing. 

There was just spring-boot-starter-thymeleaf library.

dependencies {
   implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

 

 

Added the library

dependencies {
   implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
   implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'

 

 

 

 

Layout worked!!

 

댓글


반응형
반응형