Commit 0a124536 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge pull request #5878 from Kazuki Shimizu

* gh-5878:
  Polish "Set default paths for fixed static version" (gh-5878)
  Set default paths for fixed static version
parents d15459b1 83573bf2
...@@ -292,7 +292,7 @@ public class ResourceProperties implements ResourceLoaderAware { ...@@ -292,7 +292,7 @@ public class ResourceProperties implements ResourceLoaderAware {
/** /**
* Comma-separated list of patterns to apply to the Version Strategy. * 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. * Version string to use for the Version Strategy.
......
...@@ -353,7 +353,7 @@ content into your application; rather pick only the properties that you need. ...@@ -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.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.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.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.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. spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/ # Locations of static resources.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment