Use persistent servlet session with DevTools

Set `server.session.persistent=true` when running DevTools to ensure
persistent sessions are used.

Fixes gh-3530
This commit is contained in:
Phillip Webb
2015-07-16 17:27:31 -07:00
parent 08d1f6daf5
commit d2133687b0
3 changed files with 16 additions and 4 deletions

View File

@@ -46,6 +46,7 @@ class DevToolsPropertyDefaultsPostProcessor implements BeanFactoryPostProcessor,
properties.put("spring.groovy.template.cache", "false");
properties.put("spring.velocity.cache", "false");
properties.put("spring.mustache.cache", "false");
properties.put("server.session.persistent", "true");
PROPERTIES = Collections.unmodifiableMap(properties);
}