
build.gradle 에서
dependencies {
developmentOnly("org.springframework.boot:spring-boot-devtools")
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
pom.xml 에서
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
File -> Setting -> Complier
Build project automatically 체크

File -> Setting -> Advanced Settings -> Compiler
Allow auto-make to start even if developed application is currently running 체크
cache 사용을 중지해야만 소스코드 수정 이후 적용이 된다.
application.properties 에서
spring.thymeleaf.cache=false