
The restart functionality of Spring Boot Dev Tools listens to changes to the files in our application and then throws away and restarts the restart classloader.

You might say it’s not important to know the details of how Spring Boot Dev Tools work, but since a lot of things can break in auto-reloading files, I think it’s good to know how Spring Boot Dev Tools works under the cover.

#Dev livereload atom code
This article is accompanied by a working code example on GitHub.īefore we start, let’s describe what we want to achieve for our developer experience with Spring Boot.

#Dev livereload atom how to
This article explains how Spring Boot Dev Tools works and how to configure it to your Spring Boot application consisting of a single or multiple Gradle modules (it will probably also work with Maven, with some changes, but this article will only show the Gradle configuration). It took me some time to set it up to my satisfaction (and then some more time to build a Gradle plugin that makes the setup easier), but it was worth it. Until I got fed up with it and gave Spring Boot Dev Tools a try. Sound familiar? That’s pretty much how I developed Spring Boot apps for a long time. Then, you log back into the app, navigate to where you were before, and check if your changes work. You probably restart it and go get a coffee or swipe through your Twitter feed until it’s up and running again. What are you doing when you’ve made a change to a Spring Boot app and want to test it?
