@ConfigurationProperties(prefix="spring.resources", ignoreUnknownFields=false) public class ResourceProperties extends Object implements 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() |
Resource |
getWelcomePage() |
boolean |
isAddMappings() |
void |
setAddMappings(boolean addMappings) |
void |
setCachePeriod(Integer cachePeriod) |
void |
setResourceLoader(ResourceLoader resourceLoader) |
void |
setStaticLocations(String[] staticLocations) |
public void setResourceLoader(ResourceLoader resourceLoader)
setResourceLoader
in interface ResourceLoaderAware
public String[] getStaticLocations()
public void setStaticLocations(String[] staticLocations)
public Resource getWelcomePage()
public Integer getCachePeriod()
public void setCachePeriod(Integer cachePeriod)
public boolean isAddMappings()
public void setAddMappings(boolean addMappings)
public ResourceProperties.Chain getChain()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.