How to configure IDEA for Spring Boot DevTools Follow Answered Toby Created March 25, 2019 06:42 I'm developing a Spring Boot application in Kotlin with IDEA. I leave the build to IDEA (not delegating to Gradle), I have installed the `spring-boot-devtools` module, and I'm launching the application using a Run Configuration of type Kotlin, pointing to my ApplicationKt class. This works, but whenever I trigger a rebuild, IDEA puts the compiled classes into the output directory incrementally, as they are done (and probably clears the output directory beforehand.) As soon as the first change hits the output directory, the running application detects it and triggers a hot-restart. But most of the times the restart completes before IDEA has finished building the project, resulting in a broken run. Spring Boot has a `spring.devtools.restart.trigger-file` configuration property that is designed to address this issue. It makes the hot-restart only be performed when that particular file is touched. Can I make IDEA touch a specific file at the end of the build process? Ideally, only if the build succeeded? Is there a plugin that can help me with it? Or is there a better way to configure IDEA (CE) for building and running Spring Boot applications?