Skip to content

Commit 3007443

Browse files
committed
Improve documentation of static resource reloading with devtools
Closes gh-5133 Closes gh-7886
1 parent 06017f6 commit 3007443

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,15 +2452,22 @@ There are several options for hot reloading. The recommended approach is to use
24522452
<<using-spring-boot.adoc#using-boot-devtools,`spring-boot-devtools`>> as it provides
24532453
additional development-time features such as support for fast application restarts
24542454
and LiveReload as well as sensible development-time configuration (e.g. template caching).
2455+
Devtools works by monitoring the classpath for changes. This means that static resource
2456+
changes must be "built" for the change to take affect. By default, this happens
2457+
automatically in Eclipse when you save your changes. In IntelliJ IDEA, Make Project will
2458+
trigger the necessary build. Due to the
2459+
<<using-spring-boot.adoc#using-boot-devtools-restart-exclude, default restart
2460+
exclusions>>, changes to static resources will not trigger a restart of your application.
2461+
They will, however, trigger a live reload.
24552462

24562463
Alternatively, running in an IDE (especially with debugging on) is a good way to do
24572464
development (all modern IDEs allow reloading of static resources and usually also
24582465
hot-swapping of Java class changes).
24592466

24602467
Finally, the <<build-tool-plugins.adoc#build-tool-plugins, Maven and Gradle plugins>> can
24612468
be configured (see the `addResources` property) to support running from the command line
2462-
with reloading of static files. You can use that with an external css/js compiler process
2463-
if you are writing that code with higher level tools.
2469+
with reloading of static files directly from source. You can use that with an external
2470+
css/js compiler process if you are writing that code with higher level tools.
24642471

24652472

24662473

0 commit comments

Comments
 (0)