Thymeleaf 사용방법
by 볼빵빵오춘기Springboot 설정
Maven에서 설정 (pom.xml에서 아래 코드 추가)
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
gradle에서 설정 (build.gradle - dependencies에 아래 코드 추가)
dependencies { // thymeleaf implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' }
HTML 설정
<html lang="ko" xmlns:th="http://www.thymeleaf.org" >
xmlns:th="http://www.thymeleaf.org" 을 넣어줌으로써 나는 Thymeleaf 사용할꺼야 라는 의미이다.

블로그의 정보
Hello 춘기's world
볼빵빵오춘기활동하기
Hello 춘기's world볼빵빵오춘기 님의 블로그입니다.