Auto reload in IntelliJ for Spring Boot projects

March 11, 2025

  • Add spring-boot-devtools to pom.xml:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>

  • Enable auto-make in IntelliJ under Advanced Settings -> Compiler:

auto-make


References