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
Viewinterface.User can provide instances in the application context and they will be applied to eachJStachioModelViewinstance before rendering.A servlet server awareJStachioHttpMessageConverterthat will leverageServletResponse.setBufferSize(int)to reduce duplicate buffering.AHandlerInterceptorthat automatically applies allJStachioModelViewConfigurerinstances to views before rendering.