From 5c6690f70437e74e2cc299b1d04d21ac6a63e2a0 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 28 Jan 2014 08:52:37 +0000 Subject: [PATCH] More detail on reloading static resources --- docs/howto.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/howto.md b/docs/howto.md index e96ab15da8..65a0cd860d 100644 --- a/docs/howto.md +++ b/docs/howto.md @@ -241,7 +241,20 @@ public EmbeddedServletContainerCustomizer containerCustomizer(){ } ``` -## Reload Static Content (E.g. Thymeleaf Templates) Without Restarting the Container +## Reload Static Content + +There are several options. Running in an IDE (especially with +debugging on) is a good way to do development (all modern IDEs allow +reloading of static resources and usually also hotswapping of Java +class changes). The +[Maven](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-tools/spring-boot-maven-plugin#running-applications) +and +[Gradle](https://github.com/spring-projects/spring-boot/tree/master/spring-boot-tools/spring-boot-gradle-plugin#running-a-project-in-place) +tooling also support running from the command line with reloading of +static files. You can use that with an external css/js compiler +process if you are writing that code with higher level tools. + +## Reload Thymeleaf Templates Without Restarting the Container If you are using Thymeleaf, then set `spring.thymeleaf.cache=false`. See `ThymeleafAutoConfiguration` for