org.springframework.web.servlet.view.UrlBasedViewResolver .
| Modifier and Type | Field and Description |
|---|---|
| protected final UrlBasedViewResolver |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public UrlBasedViewResolverRegistration | attributes(Map<String, ?> attributes)
Set static attributes to be added to the model of every request for all views resolved by this view resolver. |
| public UrlBasedViewResolverRegistration | |
| public UrlBasedViewResolverRegistration | |
| protected UrlBasedViewResolver | |
| public UrlBasedViewResolverRegistration | |
| public UrlBasedViewResolverRegistration | |
| public UrlBasedViewResolverRegistration | |
| public UrlBasedViewResolverRegistration |
| viewResolver | back to summary |
|---|---|
| protected final UrlBasedViewResolver viewResolver | |
| UrlBasedViewResolverRegistration | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration(UrlBasedViewResolver viewResolver) | |
| attributes | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration attributes(Map<String, ?> 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. | |
| cache | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration cache(boolean cache) Enable or disable caching. This is equivalent to setting the Default is "true": caching is enabled. Disable this only for debugging and development. | |
| cacheLimit | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration cacheLimit(int cacheLimit) Specify the maximum number of entries for the view cache. Default is 1024. | |
| getViewResolver | back to summary |
|---|---|
| protected UrlBasedViewResolver getViewResolver() | |
| prefix | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration prefix(String prefix) Set the prefix that gets prepended to view names when building a URL. | |
| suffix | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration suffix(String suffix) Set the suffix that gets appended to view names when building a URL. | |
| viewClass | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration viewClass(Class<?> viewClass) Set the view class that should be used to create views. | |
| viewNames | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration viewNames(String... 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'. | |