From c86ce27117fc7b8f59936094a4eb6498ef04fdee Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 18 Nov 2020 17:40:35 +0100 Subject: [PATCH] Use non deprecated properties to override web resources cache Closes gh-24203 --- .../devtools/env/DevToolsPropertyDefaultsPostProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java index 19410eb690c8..6b6b08705588 100755 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/env/DevToolsPropertyDefaultsPostProcessor.java @@ -69,8 +69,8 @@ public class DevToolsPropertyDefaultsPostProcessor implements EnvironmentPostPro properties.put("spring.mustache.cache", "false"); properties.put("server.servlet.session.persistent", "true"); properties.put("spring.h2.console.enabled", "true"); - properties.put("spring.resources.cache.period", "0"); - properties.put("spring.resources.chain.cache", "false"); + properties.put("spring.web.resources.cache.period", "0"); + properties.put("spring.web.resources.chain.cache", "false"); properties.put("spring.template.provider.cache", "false"); properties.put("spring.mvc.log-resolved-exception", "true"); properties.put("server.error.include-binding-errors", "ALWAYS");