File tree 1 file changed +7
-4
lines changed
spring-boot-project/spring-boot-docs/src/main/asciidoc
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -762,10 +762,13 @@ listings for Maven and Gradle:
762
762
763
763
NOTE: Developer tools are automatically disabled when running a fully packaged
764
764
application. If your application is launched from `java -jar` or if it is started from a
765
- special classloader, then it is considered a "`production application`". Flagging the
766
- dependency as optional in Maven or using a custom`developmentOnly` configuration in
767
- Gradle (as shown above) is a best practice that prevents devtools from being transitively
768
- applied to other modules that use your project.
765
+ special classloader, then it is considered a "`production application`". If that does not
766
+ apply to you (i.e. if you run your application from a container), consider excluding
767
+ devtools or set the `-Dspring.devtools.restart.enabled=false` system property.
768
+
769
+ TIP: Flagging the dependency as optional in Maven or using a custom`developmentOnly`
770
+ configuration in Gradle (as shown above) is a best practice that prevents devtools from
771
+ being transitively applied to other modules that use your project.
769
772
770
773
TIP: Repackaged archives do not contain devtools by default. If you want to use a
771
774
<<using-boot-devtools-remote,certain remote devtools feature>>, you need to disable the
You can’t perform that action at this time.
0 commit comments