diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java index 043da7111d..896f402510 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java @@ -195,7 +195,7 @@ public class Restarter { * @param enabled if restart support is enabled */ private void setEnabled(boolean enabled) { - this.enabled = false; + this.enabled = enabled; } /**