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
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user