类 ResourceProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.web.ResourceProperties
- 所有已实现的接口:
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.- 从以下版本开始:
- 1.1.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 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.
构造器概要
构造器 构造器 说明 ResourceProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
构造器详细资料
ResourceProperties
public ResourceProperties()
方法详细资料
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- 指定者:
setResourceLoader在接口中org.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()