Skip to content

Commit 4cbbd48

Browse files
committed
Polish documentation
Closes gh-5131
1 parent 31aa5ad commit 4cbbd48

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,17 +1963,19 @@ requests). To switch that on in a Spring Boot application you just need to set
19631963

19641964
[[howto-reload-static-content]]
19651965
=== Reload static content
1966-
There are several options for hot reloading. Running in an IDE (especially with debugging
1967-
on) is a good way to do development (all modern IDEs allow reloading of static resources
1968-
and usually also hot-swapping of Java class changes).
1966+
There are several options for hot reloading. The recommended approach is to use
1967+
<<using-spring-boot.adoc#using-boot-devtools,`spring-boot-devtools`>> as it provides
1968+
additional development-time features such as support for fast application restarts
1969+
and LiveReload as well as sensible development-time configuration (e.g. template caching).
19691970

1970-
The <<using-spring-boot.adoc#using-boot-devtools,`spring-boot-devtools`>> module is also
1971-
available with support for fast application restarts and LiveReload.
1971+
Alternatively, running in an IDE (especially with debugging on) is a good way to do
1972+
development (all modern IDEs allow reloading of static resources and usually also
1973+
hot-swapping of Java class changes).
19721974

19731975
Finally, the <<build-tool-plugins.adoc#build-tool-plugins, Maven and Gradle plugins>> can
1974-
be configured to support running from the command line with reloading of static files. You
1975-
can use that with an external css/js compiler process if you are writing that code with
1976-
higher level tools.
1976+
be configured (see the `addResources` property) to support running from the command line
1977+
with reloading of static files. You can use that with an external css/js compiler process
1978+
if you are writing that code with higher level tools.
19771979

19781980

19791981

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,9 @@ TIP: For a complete list of the properties that are applied see
940940
Applications that use `spring-boot-devtools` will automatically restart whenever files
941941
on the classpath change. This can be a useful feature when working in an IDE as it gives
942942
a very fast feedback loop for code changes. By default, any entry on the classpath that
943-
points to a folder will be monitored for changes.
943+
points to a folder will be monitored for changes. Note that certain resources such as
944+
static assets and view templates <<using-boot-devtools-restart-exclude, do not need to
945+
restart the application>>.
944946

945947
.Triggering a restart
946948
****

0 commit comments

Comments
 (0)