@ConfigurationProperties(prefix="spring.resources", ignoreUnknownFields=false) public class ResourceProperties extends Object implements org.springframework.context.ResourceLoaderAware
Modifier and Type | Class and Description |
---|---|
static class |
ResourceProperties.Chain
Configuration for the Spring Resource Handling chain.
|
static class |
ResourceProperties.Content
Version Strategy based on content hashing.
|
static class |
ResourceProperties.Fixed
Version Strategy based on a fixed version string.
|
static class |
ResourceProperties.Strategy
Strategies for extracting and embedding a resource version in its URL path.
|
Constructor and Description |
---|
ResourceProperties() |
Modifier and Type | Method and Description |
---|---|
Integer |
getCachePeriod() |
ResourceProperties.Chain |
getChain() |
String[] |
getStaticLocations() |
org.springframework.core.io.Resource |
getWelcomePage() |
boolean |
isAddMappings() |
void |
setAddMappings(boolean addMappings) |
void |
setCachePeriod(Integer cachePeriod) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
void |
setStaticLocations(String[] staticLocations) |
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
public String[] getStaticLocations()
public void setStaticLocations(String[] staticLocations)
public org.springframework.core.io.Resource getWelcomePage()
public Integer getCachePeriod()
public void setCachePeriod(Integer cachePeriod)
public boolean isAddMappings()
public void setAddMappings(boolean addMappings)
public ResourceProperties.Chain getChain()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.