From a4d9ba165f4cddab42fb3fd39f2fe82c6a58fa65 Mon Sep 17 00:00:00 2001 From: Kazuki Shimizu Date: Fri, 6 May 2016 04:42:10 +0900 Subject: [PATCH 1/2] Set default paths for fixed static version Closes gh-5878 --- .../boot/autoconfigure/web/ResourceProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java index 06f0f7c5c6c..ab470b393af 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java @@ -292,7 +292,7 @@ public class ResourceProperties implements ResourceLoaderAware { /** * Comma-separated list of patterns to apply to the Version Strategy. */ - private String[] paths; + private String[] paths = new String[] { "/**" }; /** * Version string to use for the Version Strategy. From 83573bf2c60ede5fb50ff35ab6eb2a55d87b2222 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 12 May 2016 17:07:23 +0100 Subject: [PATCH 2/2] Polish "Set default paths for fixed static version" (gh-5878) --- .../src/main/asciidoc/appendix-application-properties.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc index 8fc93afbb50..5ced0c34598 100644 --- a/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc +++ b/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc @@ -353,7 +353,7 @@ content into your application; rather pick only the properties that you need. spring.resources.chain.strategy.content.enabled=false # Enable the content Version Strategy. spring.resources.chain.strategy.content.paths=/** # Comma-separated list of patterns to apply to the Version Strategy. spring.resources.chain.strategy.fixed.enabled=false # Enable the fixed Version Strategy. - spring.resources.chain.strategy.fixed.paths= # Comma-separated list of patterns to apply to the Version Strategy. + spring.resources.chain.strategy.fixed.paths=/** # Comma-separated list of patterns to apply to the Version Strategy. spring.resources.chain.strategy.fixed.version= # Version string to use for the Version Strategy. spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/ # Locations of static resources.