✔️ `spring-boot-devtools` 라이브러리를 추가하면, `html` 파일을 컴파일만 해주면 서버 재시작 없이 View 파일 변경 가능
💾 build.gradle
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-devtools' // 추가
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
✔️ File > Settings > Compiler > Build project automatically 체크
그리고 서버 재시작 후!
메뉴 Build > Recompile 을 클릭하면, 변경된 내용을 확인할 수 있다.
Recompile 단축키는 Ctrl + Shift + F9 이다.
서버가 돌아가는 상태에서 `hh`에서 `gg`로 바꾼 후 리컴파일 한 후 확인을 해봤더니!
잘 적용된 모습을 볼 수 있었다.
300x250
'Framekwork > SPRING' 카테고리의 다른 글
[자바/스프링] 정적 컨텐츠 (static) (0) | 2023.02.12 |
---|---|
[자바/스프링] 빌드하고 실행하기 (윈도우) (0) | 2023.02.11 |
[자바/스프링] View 환경설정 (add. thymeleaf ) (0) | 2023.02.09 |
[자바/스프링] 라이브러리 (0) | 2023.02.08 |
[자바/스프링] 프로젝트 생성 (with IntelliJ IDEA) (0) | 2023.02.08 |