When we develop web applications with Spring Boot, we have to restart the server to pick up all our changes. This kills productivity. Spring Boot Developers Tools provides solutions to automatically pick up changes without a complete server restart.
The Problem With Server Restarts
When we develop our applications (web or RESTful API), we want to be able to test our changes quickly. Typically, in the Java world, we need to restart the server to pick up changes.
That’s where Spring Boot Developer Tools comes into the picture.
Adding Spring Boot Developer Tools to your project is very simple. First, add this dependency to your Spring Boot Project gradle.build:
Create a file in the root of the project, called ‘Dockerfile’, I’ve used this Dockerfile’s template: