Spring/Thymeleaf1 Thymeleaf 사용법 및 기본 문법 Thymeleaf 사용법 thymeleaf 뷰 템플릿을 사용하기 위해서는 ThymeleafViewResolver를 등록해야 한다. 아래 라이브러리를 추가하면 Spring이 위 작업을 자동화 해준다. Gradle - build.gradle implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' Maven - pom.xml org.springframework.boot spring-boot-starter-thymeleaf 위 설정을 추가 후 빌드하면 application.properties에 아래 코드가 자동으로 추가된다. 디폴트 설정을 원하지 않는다면 직접 수정해도 된다. application.properties spring.thyme.. 2022. 9. 23. 이전 1 다음