Enable Spring Boot Devtools in IntelliJ

1. Add Dependency in pom.xml

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
        </dependency>

2. In your intellij IDEA go to: file->settings->build,execution,deployment. Go to ->compiler->build project automatically.

3. Advanced Setting -> Enable auto-make