类 AbstractTemplateViewResolverProperties
java.lang.Object
org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
org.springframework.boot.autoconfigure.template.AbstractTemplateViewResolverProperties
Base class for
@ConfigurationProperties of a
AbstractTemplateViewResolver.- 从以下版本开始:
- 1.1.0
- 作者:
- Andy Wilkinson
-
构造器概要
构造器限定符构造器说明protectedAbstractTemplateViewResolverProperties(String defaultPrefix, String defaultSuffix) -
方法概要
修饰符和类型方法说明voidapplyToMvcViewResolver(Object viewResolver) Apply the given properties to aAbstractTemplateViewResolver.booleanbooleanbooleanbooleanbooleanvoidsetAllowRequestOverride(boolean allowRequestOverride) voidsetAllowSessionOverride(boolean allowSessionOverride) voidsetExposeRequestAttributes(boolean exposeRequestAttributes) voidsetExposeSessionAttributes(boolean exposeSessionAttributes) voidsetExposeSpringMacroHelpers(boolean exposeSpringMacroHelpers) voidvoidsetRequestContextAttribute(String requestContextAttribute) void从类继承的方法 org.springframework.boot.autoconfigure.template.AbstractViewResolverProperties
getCharset, getCharsetName, getContentType, getViewNames, isCache, isCheckTemplateLocation, isEnabled, setCache, setCharset, setCheckTemplateLocation, setContentType, setEnabled, setViewNames
-
构造器详细资料
-
AbstractTemplateViewResolverProperties
-
-
方法详细资料
-
getPrefix
-
setPrefix
-
getSuffix
-
setSuffix
-
getRequestContextAttribute
-
setRequestContextAttribute
-
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) -
applyToMvcViewResolver
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.
-