arte-ri-um / arterium

전시회 정보 공유 플랫폼
1 stars 0 forks source link

[ISSUE] 타임리프 layout 오류 #13

Open suisuiee opened 1 year ago

suisuiee commented 1 year ago

오류 내용

타임리프 layout 이 적용이 되지 않았음

오류 원인

layout 을 적용하는 코드가

타임리프 2.xx 버전과 3.xx 버전이 달랐음

오류 해결

이전

<!doctype html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:**decorate**="~{layout/default-layout}">
<div layout:fragment="content">
  <p>사인 업 !</p>
</div>
</html>

수정

<!doctype html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decoraer="~{layout/default-layout}">
<div layout:fragment="content">
  <p>사인 업 !</p>
</div>
</html>