Skip to content

Commit 0061e84

Browse files
committed
Document DevTools' requirement for shutdown hook to be registered
Closes gh-4153
1 parent 59d2ae5 commit 0061e84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,10 @@ NOTE: If you use JRebel automatic restarts will be disabled in favor of dynamic
886886
reloading. Other devtools features (such as LiveReload and property overrides) can still
887887
be used.
888888

889+
NOTE: DevTools relies on the application context's shutdown hook to close it during a
890+
restart. It will not work correctly if you have disabled the shutdown hook (
891+
`SpringApplication.setRegisterShutdownHook(false)`).
892+
889893
.Restart vs Reload
890894
****
891895
The restart technology provided by Spring Boot works by using two classloaders.

0 commit comments

Comments
 (0)