Developer Tools
Learn how the Spring Boot devtools module improves development time.
We'll cover the following
We created a simple RecommendationsController
in the last lesson that received a request from localhost/movies
and returned a list of movies. If we make a change in the movies to be returned by the controller and execute the service again, the change will not be picked up unless the server is stopped and started again. Restarting the application takes a long time and doing that over and over again causes unwanted delays at the developer’s end.
Devtools dependency
To counter this problem, Spring Boot offers a Developer Tool that supports live reloads. This JAR is provided by the Spring Boot framework and is useful for development-specific debugging. To use developer tools, add the following dependency to pom.xml
file:
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.