반응형 tiles2 Thymeleaf layout 적용 방법 Thymeleaf layout 적용 방법 Spec springboot 2.6.7 thymeleaf 3.0.15 Apache tiles와 같은 기능을 해주는 Thymeleaf layout을 적용하는 방법을 알아보겠습니다. layout은 별도의 설정파일 없이 .html 코드만 수정하면 적용이 가능하기 때문에 tiles 에 비해 적용이 쉽습니다. Dependency 추가 (gradle) implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation group: 'nz.net.ultraq.thymeleaf', name: 'thymeleaf-layout-dialect' layout을 사용하기 위해서는 thymeleaf-l.. Programing/JavaScript 2022. 5. 19. Spring boot 2.x apache tiles 적용 방법 Spring boot 2.x apache tiles 적용 방법 Springboot 2.x 에서 apache tiles를 적용하는 방법을 알아보도록 하겠습니다. apache tiles 는 페이지의 레이아웃을 보다 편하고 보기좋은 코드를 만드는데 도움을 줍니다. 예를들어 header와 footer가 모든 페이지에 들어간다고 했을때, apache tiles를 사용하지 않으면 각각의 페이지마다 include를 사용하여 추가해야 했습니다. . . (페이지 코드) . 하지만 tiles를 사용하게 되면 각 페이지에 include를 하지 않아도 됩니다. 그럼 spring boot 2.x 에 적용하는 방법을 알아보겠습니다. 의존성 주입 도구는 gradle 입니다. maven이나 기타 다른 의존성 도구는 아래의 링크를 확.. Programing/Springboot 2021. 8. 17. 이전 1 다음 💲 추천 글 반응형