스프링footer
-
[spring Boot] Thymeleaf 페이지 레이아웃Spring/Spring Boot 2024. 8. 6. 12:34
▤ 목차" data-ke-type="html">HTML 삽입미리보기할 수 없는 소스 ✔ Thymeleaf Layout Dialect dependency 추가 ***⌨ build.gradle > dependencies 설정implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect' 반드시 넣어줘야한다. dependency를 추가하고 나면 프로젝트를 refresh 해줘야한다. 👻 Refresh Gradle Project 해당 파일 우클릭 > gradle > Refresh Gradle Project 을 눌러 프로젝트를 리플레쉬해준다. ✔컨트롤러 작성✨ 형식@Controller@RequestMapping(value="thleaf")publi..