类 AbstractTemplateViewResolverProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
- org.springframework.boot.autoconfigure.template.AbstractTemplateViewResolverProperties
public abstract class AbstractTemplateViewResolverProperties extends AbstractViewResolverProperties
Base class forConfigurationProperties
of aAbstractTemplateViewResolver
.- 从以下版本开始:
- 1.1.0
构造器概要
构造器 限定符 构造器 说明 protected
AbstractTemplateViewResolverProperties(String defaultPrefix, String defaultSuffix)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
applyToViewResolver(Object viewResolver)
Apply the given properties to aAbstractTemplateViewResolver
.String
getPrefix()
String
getRequestContextAttribute()
String
getSuffix()
boolean
isAllowRequestOverride()
boolean
isAllowSessionOverride()
boolean
isExposeRequestAttributes()
boolean
isExposeSessionAttributes()
boolean
isExposeSpringMacroHelpers()
void
setAllowRequestOverride(boolean allowRequestOverride)
void
setAllowSessionOverride(boolean allowSessionOverride)
void
setExposeRequestAttributes(boolean exposeRequestAttributes)
void
setExposeSessionAttributes(boolean exposeSessionAttributes)
void
setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers)
void
setPrefix(String prefix)
void
setRequestContextAttribute(String requestContextAttribute)
void
setSuffix(String suffix)
从类继承的方法 org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
getCharset, getCharsetName, getContentType, getViewNames, isCache, isCheckTemplateLocation, isEnabled, setCache, setCharset, setCheckTemplateLocation, setContentType, setEnabled, setViewNames
构造器详细资料
AbstractTemplateViewResolverProperties
protected AbstractTemplateViewResolverProperties(String defaultPrefix, String defaultSuffix)
方法详细资料
getRequestContextAttribute
public String getRequestContextAttribute()
setRequestContextAttribute
public void setRequestContextAttribute(String requestContextAttribute)
isExposeRequestAttributes
public boolean isExposeRequestAttributes()
setExposeRequestAttributes
public void setExposeRequestAttributes(boolean exposeRequestAttributes)
isExposeSessionAttributes
public boolean isExposeSessionAttributes()
setExposeSessionAttributes
public void setExposeSessionAttributes(boolean exposeSessionAttributes)
isAllowRequestOverride
public boolean isAllowRequestOverride()
setAllowRequestOverride
public void setAllowRequestOverride(boolean allowRequestOverride)
isAllowSessionOverride
public boolean isAllowSessionOverride()
setAllowSessionOverride
public void setAllowSessionOverride(boolean allowSessionOverride)
isExposeSpringMacroHelpers
public boolean isExposeSpringMacroHelpers()
setExposeSpringMacroHelpers
public void setExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers)
applyToViewResolver
public void applyToViewResolver(Object viewResolver)
Apply the given properties to aAbstractTemplateViewResolver
. Use Object in signature to avoid runtime dependency on MVC, which means that the template engine can be used in a non-web application.- 参数:
viewResolver
- the resolver to apply the properties to.