How to enable Spring Boot DevTools on IntelliJ IDEA
Feb 3, 2021
Make sure that you have Spring Boot DevTools dependency on your pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
Step 1 — Enable “Build project automatically”
Open Settings > Build, Execution, Deployment > Compiler
Step 2 — Open Registry
Press Ctrl
+ Shift
+ A
, then search for Registry
then press Enter
Step 3 — Enable Auto make when App is Running
Looking for compiler.automake.allow.when.app.running
and check the checkbox
That’s it!
Make some changes on your source code and press Ctrl
+ S
IntelliJ IDEA will re-compile and update for you.
Happy Coding