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. */