@ SneakyThrows public static void render ( final Object model , final HttpServletResponse response ) { val jsonConverter = new MappingJackson2HttpMessageConverter ( ) ; jsonConverter . setPrettyPrint ( true ) ; val jsonMimeType = MediaType . APPLICATION_JSON ; jsonConverter . write ( model , jsonMimeType , new ServletServerHttpResponse ( response ) ) ; }
Render model and view .