Skip to content

Commit

Permalink
Merge pull request #24271 from CubeOfCheese
Browse files Browse the repository at this point in the history
* pr/24271:
  Polish "Triggering a restart" formatting
  Document devtools restart with Maven/Gradle

Closes gh-24271
  • Loading branch information
philwebb committed Dec 9, 2020
2 parents 89642f0 + 10d3121 commit 9dfd766
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,11 @@ Note that certain resources, such as static assets and view templates, <<using-b
.Triggering a restart
****
As DevTools monitors classpath resources, the only way to trigger a restart is to update the classpath.
The way in which you cause the classpath to be updated depends on the IDE that you are using.
In Eclipse, saving a modified file causes the classpath to be updated and triggers a restart.
In IntelliJ IDEA, building the project (`Build +->+ Build Project`) has the same effect.
The way in which you cause the classpath to be updated depends on the IDE that you are using:
* In Eclipse, saving a modified file causes the classpath to be updated and triggers a restart.
* In IntelliJ IDEA, building the project (`Build +->+ Build Project`) has the same effect.
* If using a build plugin, running `mvn compile` for Maven or `gradle build` for Gradle will trigger a restart.
****

NOTE: As long as forking is enabled, you can also start your application by using the supported build plugins (Maven and Gradle), since DevTools needs an isolated application classloader to operate properly.
Expand Down

0 comments on commit 9dfd766

Please sign in to comment.