본문 바로가기

Spring

Thymeleaf_0강

  프로젝트 생성

thymeleaf를 사용하기 위한 프로젝트 생성 방법은 다음과 같다.

 

1. 여태 War로 설정했던 Packaging을 Jar로 바꿔준다.

 

 

2. Dependencies를 선택할 때 Spring Devtools를 포함시킨다.

 

 

3. application.properties에서 devtools 설정 코드를 추가 작성한다.

#devtools setting
spring.devtools.livereload.enabled=true

#thymeleaf setting
spring.thymeleaf.cache=false

 

4. File > Setting에서 다음 항목을 체크해준다.

Build Project automatically 및 Allow auto-make to start 항목 체크

 

'Spring' 카테고리의 다른 글

Jpa_1강  (0) 2022.11.17
Jpa_0강  (0) 2022.11.08
Ajax_2강  (0) 2022.11.08
Ajax_1강  (0) 2022.11.08
Thymeleaf_1강  (0) 2022.11.07