코딩 중 html 수정 후 매번 서버 재시작이 번거러움

spring-boot-devtools 라이브러리 사용한다면 재시작 없이 변경 사항을 바로 확인 가능

spring-boot-devtools 라이브러리를 추가하면, html 파일을 컴파일만 해주면 서버 재시작 없이 View 파일 변경이 가능

 

[수정]

1. build.gradle -> dependencies -> spring-boot-devtools 라이브러리 추가

 

 

아래 코드 추가

implementation 'org.springframework.boot:spring-boot-devtools'

 

2. Gradle reload 필수

 

3. html 수정 후 인텔리J 컴파일

 - 인텔리J 컴파일 방법: 메뉴 build -> Recompile

 

4. 테스트

 

 

 

+ Recent posts