From 83300b35bfd3f1428e931e49f14b0987bd2b5d34 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 4 Jun 2015 17:26:07 -0700 Subject: [PATCH] Set additional template cache devtools properties Update DevToolsPropertyDefaultsPostProcessor to set the following additional template cache properties to `false`: spring.freemarker.cache spring.groovy.template.cache spring.velocity.cache spring.mustache.cache Fixes gh-3125 --- .../autoconfigure/DevToolsPropertyDefaultsPostProcessor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsPropertyDefaultsPostProcessor.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsPropertyDefaultsPostProcessor.java index d2960a7b40..fe20ea90e7 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsPropertyDefaultsPostProcessor.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsPropertyDefaultsPostProcessor.java @@ -42,6 +42,10 @@ class DevToolsPropertyDefaultsPostProcessor implements BeanFactoryPostProcessor, static { Map properties = new HashMap(); properties.put("spring.thymeleaf.cache", "false"); + properties.put("spring.freemarker.cache", "false"); + properties.put("spring.groovy.template.cache", "false"); + properties.put("spring.velocity.cache", "false"); + properties.put("spring.mustache.cache", "false"); PROPERTIES = Collections.unmodifiableMap(properties); }