Skip to content

Commit 2ac18a3

Browse files
committed
Add a note to define what triggers a Devtools change
Closes gh-4453
1 parent b09d0e1 commit 2ac18a3

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -943,16 +943,23 @@ on the classpath change. This can be a useful feature when working in an IDE as
943943
a very fast feedback loop for code changes. By default, any entry on the classpath that
944944
points to a folder will be monitored for changes.
945945

946+
.Triggering a change
947+
****
948+
DevTools _only_ monitors classpath resources so the only way to trigger a change is to
949+
update the classpath. On Eclipse, saving is actually updating the project, compiling or
950+
copying resources for you as part of the save action. If you are using Intellij IDEA,
951+
there is no such thing as a save action since the resources are saved automatically for
952+
you; please use the `Build` -> `Make Project` action to achieve the same result.
953+
****
954+
946955
NOTE: You can also start your application via the supported build plugins (i.e. Maven and
947956
Gradle) as long as forking is enabled since DevTools need an isolated application
948957
classloader to operate properly.
949958

950959
TIP: Automatic restart works very well when used with LiveReload.
951-
<<using-boot-devtools-livereload,See below>> for details.
952-
953-
NOTE: If you use JRebel automatic restarts will be disabled in favor of dynamic class
954-
reloading. Other devtools features (such as LiveReload and property overrides) can still
955-
be used.
960+
<<using-boot-devtools-livereload,See below>> for details. If you use JRebel automatic
961+
restarts will be disabled in favor of dynamic class reloading. Other devtools features
962+
(such as LiveReload and property overrides) can still be used.
956963

957964
NOTE: DevTools relies on the application context's shutdown hook to close it during a
958965
restart. It will not work correctly if you have disabled the shutdown hook (

0 commit comments

Comments
 (0)