Browse Source

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
pull/5936/head
Andy Wilkinson 10 years ago
parent
commit
0a124536df
  1. 2
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java
  2. 2
      spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc

2
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ResourceProperties.java

@ -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.
*/
private String[] paths;
private String[] paths = new String[] { "/**" };
/**
* Version string to use for the Version Strategy.

2
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. @@ -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.

Loading…
Cancel
Save