Class ResourceProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ResourceProperties
@ConfigurationProperties(prefix="spring.resources", ignoreUnknownFields=false) public class ResourceProperties extends ObjectProperties used to configure resource handling.- Since:
- 1.1.0
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceProperties.CacheCache configuration.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 ResourceProperties.CachegetCache()ResourceProperties.ChaingetChain()String[]getStaticLocations()booleanisAddMappings()voidsetAddMappings(boolean addMappings)voidsetStaticLocations(String[] staticLocations)
Constructor Detail
ResourceProperties
public ResourceProperties()
Method Detail
getStaticLocations
public String[] getStaticLocations()
setStaticLocations
public void setStaticLocations(String[] staticLocations)
isAddMappings
public boolean isAddMappings()
setAddMappings
public void setAddMappings(boolean addMappings)
getChain
public ResourceProperties.Chain getChain()
getCache
public ResourceProperties.Cache getCache()