类 UrlBasedViewResolverRegistration
java.lang.Object
cn.taketoday.web.config.UrlBasedViewResolverRegistration
- 直接已知子类:
ViewResolverRegistry.FreeMarkerRegistration,ViewResolverRegistry.GroovyMarkupRegistration,ViewResolverRegistry.ScriptRegistration
Assist with configuring a
UrlBasedViewResolver.- 从以下版本开始:
- 4.0 2022/2/8 15:43
- 作者:
- Sebastien Deleuze, Rossen Stoyanchev, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明attributes(Map<String, ?> attributes) Set static attributes to be added to the model of every request for all views resolved by this view resolver.cache(boolean cache) Enable or disable caching.cacheLimit(int cacheLimit) Specify the maximum number of entries for the view cache.protected UrlBasedViewResolverSet the prefix that gets prepended to view names when building a URL.Set the suffix that gets appended to view names when building a URL.Set the view class that should be used to create views.Set the view names (or name patterns) that can be handled by this view resolver.
-
字段详细资料
-
viewResolver
-
-
构造器详细资料
-
UrlBasedViewResolverRegistration
-
-
方法详细资料
-
getViewResolver
-
prefix
Set the prefix that gets prepended to view names when building a URL. -
suffix
Set the suffix that gets appended to view names when building a URL. -
viewClass
Set the view class that should be used to create views. -
viewNames
Set the view names (or name patterns) that can be handled by this view resolver. View names can contain simple wildcards such that 'my*', '*Report' and '*Repo*' will all match the view name 'myReport'. -
attributes
Set static attributes to be added to the model of every request for all views resolved by this view resolver. This allows for setting any kind of attribute values, for example bean references. -
cacheLimit
Specify the maximum number of entries for the view cache. Default is 1024. -
cache
Enable or disable caching.This is equivalent to setting the
"cacheLimit"property to the default limit (1024) or to 0, respectively.Default is "true": caching is enabled. Disable this only for debugging and development.
-