Adding Spring Boot DevTools to a project
Starting with Spring Boot 1.3, we have the ability to take advantage of DevTools components in our projects to enable things like automatic application restarts upon code change, reloading the browser windows for the UI, or remotely reloading applications.
The DevTools module is available for both Maven and Gradle, and works nicely with either Eclipse or IntelliJ IDEA editors.
Note
In this chapter, we will cover integration with Gradle and IntelliJ IDEA, but for detailed information about using Spring Boot DevTools, take a look at the documentation at http://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html.
How to do it...
Continuing with our BookPub
project, we will be adding a DevTools module to the main build configuration by performing the following steps:
- Add the following content to the
build.gradle
file located at the root of the project:
dependencies { ... compile("io.dropwizard.metrics:metrics-graphite:3...