mekings
mekings

Reputation: 446

Spring Dev Tools not Restarting After Making Changes in IntelliJ

I am building some backend APIs using Spring Boot and Kotlin.

My build tool is Gradle

My IDE is IntelliJ Ultimate Edition on a Windows Machine

I have included the spring boot dev tools into my build.gradle.kts dependencies as follow:

dependencies {
    developmentOnly("org.springframework.boot:spring-boot-devtools")
}

But whenever I make a change while the server is running, it doesn't automatically reflect the changes.

Is there anything else I need to do? Thanks

Upvotes: 1

Views: 962

Answers (2)

İsmail Y.
İsmail Y.

Reputation: 3965

1 - You need to enable the “Make project automatically” option:

You can find it in Settings –> Build, Execution, Deployment –> Compiler

2 - Changes in IntelliJ registory:

Go to Cmd+Shift+A (Mac) or Ctrl+Shift+A (Windows) -> Registry Enable compiler.automake.allow.when.app.running

enter image description here

Upvotes: 1

Satyendra Sharma
Satyendra Sharma

Reputation: 347

Enable “Build project automatically” option in compiler settings.

Upvotes: 1

Related Questions