ViewResolver's supporting
different template mechanisms.
In addition, you can also configure defaultViews for rendering according to the requested content type, e.g.
JSON, XML, etc.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ApplicationContext | |
| private final List | |
| private Integer | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public void | defaultViews(View... defaultViews)
Set default views associated with any view name and selected based on the best match for the requested content type. |
| public UrlBasedViewResolverRegistration | |
| protected List | |
| protected int | |
| protected List | |
| public boolean | |
| public void | |
| public UrlBasedViewResolverRegistration | scriptTemplate()
Register a script template view resolver with an empty default view name prefix and suffix. |
| public void |
| applicationContext | back to summary |
|---|---|
| private final ApplicationContext applicationContext
| |
| defaultViews | back to summary |
|---|---|
| private final List<View> defaultViews | |
| order | back to summary |
|---|---|
| private Integer order
| |
| viewResolvers | back to summary |
|---|---|
| private final List<ViewResolver> viewResolvers | |
| ViewResolverRegistry | back to summary |
|---|---|
| public ViewResolverRegistry(ApplicationContext applicationContext) | |
| checkBeanOfType | back to summary |
|---|---|
| private boolean checkBeanOfType(Class<?> beanType) | |
| defaultViews | back to summary |
|---|---|
| public void defaultViews(View... defaultViews) Set default views associated with any view name and selected based on the best match for the requested content type. Use | |
| freeMarker | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration freeMarker() Register a Note that you must also configure FreeMarker by
adding a | |
| getDefaultViews | back to summary |
|---|---|
| protected List | |
| getOrder | back to summary |
|---|---|
| protected int getOrder() | |
| getViewResolvers | back to summary |
|---|---|
| protected List | |
| hasRegistrations | back to summary |
|---|---|
| public boolean hasRegistrations() Whether any view resolvers have been registered. | |
| order | back to summary |
|---|---|
| public void order(int order) Set the order for the
By default this property is not set, which means the result handler is
ordered at | |
| scriptTemplate | back to summary |
|---|---|
| public UrlBasedViewResolverRegistration scriptTemplate() Register a script template view resolver with an empty default view name prefix and suffix. Note that you must also configure script templating by
adding a
| |
| viewResolver | back to summary |
|---|---|
| public void viewResolver(ViewResolver viewResolver) Register a | |
| Access | Constructor and Description |
|---|---|
| public |
| FreeMarkerRegistration | back to summary |
|---|---|
| public FreeMarkerRegistration() | |
| Access | Constructor and Description |
|---|---|
| public |
| ScriptRegistration | back to summary |
|---|---|
| public ScriptRegistration() | |