This sample shows how to configure the Spring Boot Dev Tools plugin for a multi-module Gradle build.
Rename one of the following files to build.gradle
:
/app/default-configuration.gradle
/app/custom-configuration.gradle
Then, start the Spring Boot app with ./gradlew bootrun
.
Change any of the files in the following locations while the app is running (or add new files):
/app/src/main/java
/app/src/main/resources
/module1/src/main/java
/module1/src/main/resources
/module2/src/main/java
/module2/src/main/resources
Then, run ./gradlew restart
and refresh the page. Your changes should be visible.