From 24f29a65167d79b62415c188581df2446d087ffd Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Tue, 10 Nov 2020 15:52:17 +0100 Subject: [PATCH] Polish See gh-24099 --- .../boot/autoconfigure/web/ResourceProperties.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java index ff88c85636..78ac45b1ec 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java @@ -195,6 +195,12 @@ public class ResourceProperties extends Resources { return this.cachecontrol; } + @Override + @DeprecatedConfigurationProperty(replacement = "spring.web.resources.cache.use-last-modified") + public boolean isUseLastModified() { + return super.isUseLastModified(); + } + /** * Cache Control HTTP header configuration. */