spring-framework / org.springframework.web.reactive.result.view.script / ScriptTemplateViewResolver

ScriptTemplateViewResolver

open class ScriptTemplateViewResolver : UrlBasedViewResolver

Convenience subclass of UrlBasedViewResolver that supports ScriptTemplateView and custom subclasses of it.

The view class for all views created by this resolver can be specified via the #setViewClass(Class) property.

Note: When chaining ViewResolvers this resolver will check for the existence of the specified template resources and only return a non-null View object if a template is actually found.

Author
Sebastien Deleuze

Since
5.0

See Also
ScriptTemplateConfigurer

Constructors

<init>

ScriptTemplateViewResolver()

Sets the default view class to #requiredViewClass: by default ScriptTemplateView.

ScriptTemplateViewResolver(prefix: String, suffix: String)

A convenience constructor that allows for specifying prefix and suffix as constructor arguments.