Module io.jstach.opt.spring.webmvc
Package io.jstach.opt.spring.webmvc
@NonNullByDefault
package io.jstach.opt.spring.webmvc
Spring Web MVC integration
JStachioModelView
is a
View
implementation that can be returned
directly from Controller
methods without needing
the ResponseBody
annotation.
This module also provides
ServletJStachioHttpMessageConverter
which is a
message converter optimized for servlet environments.
This integration is tied to the servlet API and thus will need it as a dependency.
-
ClassDescriptionAnother way to use JStachio with Spring MVC is to have models implement Springs
View
interface.User can provide instances in the application context and they will be applied to eachJStachioModelView
instance before rendering.A servlet server awareJStachioHttpMessageConverter
that will leverageServletResponse.setBufferSize(int)
to reduce duplicate buffering.AHandlerInterceptor
that automatically applies allJStachioModelViewConfigurer
instances to views before rendering.