Step-1 :
Include the following dependency in the pom.xml file in dependency tag.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<version>2.1.2.RELEASE</version>
</dependency>
Step-2 :
In IntelliJ, we need to undergo for another two more steps. That is the not the case with Ecllipse. Press Ctrl + Alt + S and then select Build,Execution,Development section. Under it select Compiler. Then Select the Build project automatically option. Make sure that Click on OK button at the buttom.
Step-3 :
Press Ctrl + SHIFT + A works for windows/linux or Command + Ctrl + A in mac to open the popup window and then type registry. And then search for compiler.automake.allow.when.app.running and select that option and then close the window.
All Set. Now you are able to livereload your application.