• Add the spring-boot-devtools dependency:

pom.xml:

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-devtools</artifactId>
  <optional>true</optional>
</dependency>
  • Disable Thymeleaf templates caching:
---
spring:
  config:
    activate:
      on-profile: localdev
  thymeleaf:
    cache: false
  • Enable Build project automatically in IntelliJ

IntelliJ - Settings - Enable Build project automatically IntelliJ - Enable Build project automatically

  • Enable Allow auto-make to start even if develop application is currently running

IntelliJ - Settings - Enable Allow auto-make to start even if develop application is currently running IntelliJ - Enable Allow auto-make to start even if develop application is currently running