728x90 반응형 layout2 [SpringBoot] Thymeleaf layout dialect (thymeleaf 레이아웃 적용하기) thymeleaf layout SpringBoot에 thymeleaf 템플릿 엔진 레이아웃을 적용해보겠습니다. [SpringBoot] Thymeleaf 설정 및 Thymeleaf HTML Code(th element) 사용법 우선 pom.xml에 dependency를 추가해줍니다. nz.net.ultraq.thymeleaf thymeleaf-layout-dialect 2.4.1 이어서 templateEngine에 layout dialect를 추가해줍니다. @Bean @Description("Thymeleaf Template Engine") public SpringTemplateEngine templateEngine() { SpringTemplateEngine templateEngine = new Spri.. 2021. 1. 17. [SpringBoot] Thymeleaf 설정 및 Thymeleaf HTML Code(th element) 사용법 StringBoot + Thymeleaf Thymeleaf는 HTML, XML, Javascript, CSS 및 일반 텍스트를 처리할 수 있는 웹 및 독립형 환경에서 사용할 수 있는 Java 템플릿 엔진입니다. Thymeleaf는 html 파일을 가져와 파싱 해서 분석 후 정해진 위치에 데이터를 치환하여 웹 페이지를 생성합니다. 그러면 springboot에서 thymeleaf를 설정하는 방법에대해 알아보겠습니다. SpringBoot는 spring-boot-starter-thymeleaf dependency를 추가하여 Thymeleaf에 대한 자동 구성을 제공합니다. org.springframework.boot spring-boot-starter-thymeleaf 명시적인 구성은 필요하지 않지만, 기본적으.. 2021. 1. 17. 이전 1 다음 728x90 반응형