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
This commit is contained in:
Phillip Webb 2015-06-04 17:26:07 -07:00
parent b47af19920
commit 83300b35bf
1 changed files with 4 additions and 0 deletions

View File

@ -42,6 +42,10 @@ class DevToolsPropertyDefaultsPostProcessor implements BeanFactoryPostProcessor,
static {
Map<String, Object> properties = new HashMap<String, Object>();
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);
}