/** * Configure ViewResolvers to deliver preferred views. */ @Override public void configureViewResolvers(ViewResolverRegistry registry) { InternalResourceViewResolver viewResolver = new InternalResourceViewResolver(); viewResolver.setViewClass(JstlView.class); viewResolver.setPrefix("/WEB-INF/views/"); viewResolver.setSuffix(".jsp"); registry.viewResolver(viewResolver); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry.viewResolver( new ReactViewResolver() ); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { super.configureViewResolvers(registry); InternalResourceViewResolver viewResolver = new InternalResourceViewResolver(); viewResolver.setPrefix("/pages/"); viewResolver.setSuffix(".jsp"); registry.viewResolver(viewResolver); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { ScriptTemplateViewResolver viewResolver = new ScriptTemplateViewResolver(); viewResolver.setPrefix("/templates/"); viewResolver.setSuffix(".js"); registry.viewResolver(viewResolver); registry.scriptTemplate(); super.configureViewResolvers(registry); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { MappingJackson2JsonView mappingJackson2JsonView = new MappingJackson2JsonView(); mappingJackson2JsonView.setObjectMapper(objectMapper); registry.enableContentNegotiation(true, mappingJackson2JsonView); registry.viewResolver(viewResolver); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { InternalResourceViewResolver viewResolver = new InternalResourceViewResolver(); viewResolver.setViewClass(JstlView.class); viewResolver.setPrefix("/WEB-INF/views/"); viewResolver.setSuffix(".jsp"); registry.viewResolver(viewResolver); super.configureViewResolvers(registry); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry .tiles(); // .prefix("WEB-INF/views") // .suffix(".jspx"); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { FastJsonJsonView fastJsonJsonView = new FastJsonJsonView(); registry.enableContentNegotiation(fastJsonJsonView); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry.viewResolver(getViewResolver()); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry.tiles(); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry.jsp("", ""); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry.viewResolver(handlebars()); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry.viewResolver(new MustacheViewResolver()); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry.scriptTemplate().prefix("/static/templates/").suffix(".html"); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { TilesViewResolver viewResolver = new TilesViewResolver(); viewResolver.setViewClass(TilesView.class); registry.viewResolver(viewResolver); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry.viewResolver(new InternalResourceViewResolver()); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { // registry.enableContentNegotiation(new MappingJackson2JsonView()); registry.freeMarker().cache(false); }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { registry .viewResolver(viewResolver()); }