Disable resource cache when DevTools is enabled
Closes gh-3794 Closes gh-3739
This commit is contained in:
committed by
Stephane Nicoll
parent
5aa222a5dd
commit
4e410681aa
1
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java
vendored
Normal file → Executable file
1
spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java
vendored
Normal file → Executable file
@@ -46,6 +46,7 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro
|
||||
properties.put("spring.mustache.cache", "false");
|
||||
properties.put("server.session.persistent", "true");
|
||||
properties.put("spring.h2.console.enabled", "true");
|
||||
properties.put("spring.resources.cache-period", "0");
|
||||
PROPERTIES = Collections.unmodifiableMap(properties);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user