minlog
article thumbnail
[ Thymeleaf ] 프로젝트에서 '타임리프 템플릿' 레이아웃 사용 방법
Project · Etc/Project 2023. 4. 26. 17:30

Thymeleaf 사용자 화면단을 타임리프를 사용할 경우 레이아웃을 분리하여 작업할 수 있다. header, footer를 분리하여 공통된 영역은 한 곳에서 관리 할 수 있도록 설정 가능하다. 추후에 내용이 나 추가 사항이있을 경우, 유지보수에 편리하는 장점이 있다. 1. 설정 파일 세팅 📑 build.gradle dependencies { ... implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' // 타임리프 레이아웃 implementation group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect' } 📑 application.properties ##타임리프 템..