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