Class ResourceProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ResourceProperties
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ResourceLoaderAware
@ConfigurationProperties(prefix="spring.resources", ignoreUnknownFields=false) public class ResourceProperties extends Object implements org.springframework.context.ResourceLoaderAwareProperties used to configure resource handling.- Since:
- 1.1.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceProperties.ChainConfiguration for the Spring Resource Handling chain.static classResourceProperties.ContentVersion Strategy based on content hashing.static classResourceProperties.FixedVersion Strategy based on a fixed version string.static classResourceProperties.StrategyStrategies for extracting and embedding a resource version in its URL path.
Constructor Summary
Constructors Constructor Description ResourceProperties()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetCachePeriod()ResourceProperties.ChaingetChain()String[]getStaticLocations()org.springframework.core.io.ResourcegetWelcomePage()booleanisAddMappings()voidsetAddMappings(boolean addMappings)voidsetCachePeriod(Integer cachePeriod)voidsetResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)voidsetStaticLocations(String[] staticLocations)
Constructor Detail
ResourceProperties
public ResourceProperties()
Method Detail
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- Specified by:
setResourceLoaderin interfaceorg.springframework.context.ResourceLoaderAware
getStaticLocations
public String[] getStaticLocations()
setStaticLocations
public void setStaticLocations(String[] staticLocations)
getWelcomePage
public org.springframework.core.io.Resource getWelcomePage()
getCachePeriod
public Integer getCachePeriod()
setCachePeriod
public void setCachePeriod(Integer cachePeriod)
isAddMappings
public boolean isAddMappings()
setAddMappings
public void setAddMappings(boolean addMappings)
getChain
public ResourceProperties.Chain getChain()