Intellij Spring boot Hot Swap / Hot Deploy 설정하기
intellij 2022. 2. 16. 23:36

목적 Intellij 2021버전 이후 Intellij에서 Spring boot java class 파일이 수정되었을 때 Hot Swap or Hot Deploy를 진행하게 한다. Maven or Gradle 설정 Hot Swap 설정을 위해서는 Maven 또는 Gradle에 spring-boot-devtools를 추가해 준다. maven인경우 org.springframework.boot spring-boot-devtools gradle인경우 implementation 'org.springframework.boot:spring-boot-devtools:2.6.3' Intellij 설정 file > settings > Advanced Settings > Allow auto-make to start.... ..

spring-boot-starter-thymeleaf 수정사항 즉각 반영하기
Software활용 2021. 4. 28. 16:29

Thymeleaf를 사용해서 UI Template(Html)를 수정하거나 Class를 수정했을 때 Hot Swapping을 발생 시키지 못해서, Local 서버를 완전히 껏다가 켜야 할때가 있다. 이를 Intellij에서 처리 하는 방법을 설명 하고자 한다. Template Caching Disable : spring.thymeleaf.cache=false 설정을 application.properties에 설정해 다. Debug Mode로 서버 Running : Run in Debug Mode를 선택해서 실행 한다. Reload Change Classes : Run > Reload Change Classes 클릭 이렇게 하면 서버를 재 실행 하지 않고 즉각 반영이 가능하다.