/** * Register a script template view resolver with an empty default view name prefix and suffix. * @since 4.2 */ public UrlBasedViewResolverRegistration scriptTemplate() { if (!checkBeanOfType(ScriptTemplateConfigurer.class)) { throw new BeanInitializationException("In addition to a script template view resolver " + "there must also be a single ScriptTemplateConfig bean in this web application context " + "(or its parent): ScriptTemplateConfigurer is the usual implementation. " + "This bean may be given any name."); } ScriptRegistration registration = new ScriptRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register Tiles 3.x view resolver. * <p><strong>Note</strong> that you must also configure Tiles by adding a * {@link org.springframework.web.servlet.view.tiles3.TilesConfigurer} bean. */ public UrlBasedViewResolverRegistration tiles() { if (!checkBeanOfType(TilesConfigurer.class)) { throw new BeanInitializationException("In addition to a Tiles view resolver " + "there must also be a single TilesConfigurer bean in this web application context " + "(or its parent)."); } TilesRegistration registration = new TilesRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register a Groovy markup view resolver with an empty default view name * prefix and a default suffix of ".tpl". */ public UrlBasedViewResolverRegistration groovy() { if (!checkBeanOfType(GroovyMarkupConfigurer.class)) { throw new BeanInitializationException("In addition to a Groovy markup view resolver " + "there must also be a single GroovyMarkupConfig bean in this web application context " + "(or its parent): GroovyMarkupConfigurer is the usual implementation. " + "This bean may be given any name."); } GroovyMarkupRegistration registration = new GroovyMarkupRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register a FreeMarker view resolver with an empty default view name * prefix and a default suffix of ".ftl". * <p><strong>Note</strong> that you must also configure FreeMarker by adding a * {@link org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer} bean. */ public UrlBasedViewResolverRegistration freeMarker() { if (!checkBeanOfType(FreeMarkerConfigurer.class)) { throw new BeanInitializationException("In addition to a FreeMarker view resolver " + "there must also be a single FreeMarkerConfig bean in this web application context " + "(or its parent): FreeMarkerConfigurer is the usual implementation. " + "This bean may be given any name."); } FreeMarkerRegistration registration = new FreeMarkerRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register Tiles 3.x view resolver. * <p><strong>Note</strong> that you must also configure Tiles by adding a * {@link org.springframework.web.servlet.view.tiles3.TilesConfigurer} bean. */ public UrlBasedViewResolverRegistration tiles() { if (!checkBeanOfType(TilesConfigurer.class)) { throw new BeanInitializationException("In addition to a Tiles view resolver " + "there must also be a single TilesConfigurer bean in this web application context " + "(or its parent)."); } TilesRegistration registration = new TilesRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register a Groovy markup view resolver with an empty default view name * prefix and a default suffix of ".tpl". */ public UrlBasedViewResolverRegistration groovy() { if (!checkBeanOfType(GroovyMarkupConfigurer.class)) { throw new BeanInitializationException("In addition to a Groovy markup view resolver " + "there must also be a single GroovyMarkupConfig bean in this web application context " + "(or its parent): GroovyMarkupConfigurer is the usual implementation. " + "This bean may be given any name."); } GroovyMarkupRegistration registration = new GroovyMarkupRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register a script template view resolver with an empty default view name prefix and suffix. * @since 4.2 */ public UrlBasedViewResolverRegistration scriptTemplate() { if (!checkBeanOfType(ScriptTemplateConfigurer.class)) { throw new BeanInitializationException("In addition to a script template view resolver " + "there must also be a single ScriptTemplateConfig bean in this web application context " + "(or its parent): ScriptTemplateConfigurer is the usual implementation. " + "This bean may be given any name."); } ScriptRegistration registration = new ScriptRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register a FreeMarker view resolver with an empty default view name * prefix and a default suffix of ".ftl". * <p><strong>Note</strong> that you must also configure FreeMarker by adding a * {@link org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer} bean. */ public UrlBasedViewResolverRegistration freeMarker() { if (!checkBeanOfType(FreeMarkerConfigurer.class)) { throw new BeanInitializationException("In addition to a FreeMarker view resolver " + "there must also be a single FreeMarkerConfig bean in this web application context " + "(or its parent): FreeMarkerConfigurer is the usual implementation. " + "This bean may be given any name."); } FreeMarkerRegistration registration = new FreeMarkerRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register a Groovy markup view resolver with an empty default view name * prefix and a default suffix of ".tpl". */ public UrlBasedViewResolverRegistration groovy() { if (!checkBeanOfType(GroovyMarkupConfigurer.class)) { throw new BeanInitializationException("In addition to a Groovy markup view resolver " + "there must also be a single GroovyMarkupConfig bean in this web application context " + "(or its parent): GroovyMarkupConfigurer is the usual implementation. " + "This bean may be given any name."); } GroovyMarkupRegistration registration = new GroovyMarkupRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register Tiles 3.x view resolver. * <p><strong>Note</strong> that you must also configure Tiles by adding a * {@link org.springframework.web.servlet.view.tiles3.TilesConfigurer} bean. */ public UrlBasedViewResolverRegistration tiles() { if (!checkBeanOfType(TilesConfigurer.class)) { throw new BeanInitializationException("In addition to a Tiles view resolver " + "there must also be a single TilesConfigurer bean in this web application context " + "(or its parent)."); } TilesRegistration registration = new TilesRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
/** * Register a FreeMarker view resolver with an empty default view name * prefix and a default suffix of ".ftl". * <p><strong>Note</strong> that you must also configure FreeMarker by adding a * {@link org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer} bean. */ public UrlBasedViewResolverRegistration freeMarker() { if (!checkBeanOfType(FreeMarkerConfigurer.class)) { throw new BeanInitializationException("In addition to a FreeMarker view resolver " + "there must also be a single FreeMarkerConfig bean in this web application context " + "(or its parent): FreeMarkerConfigurer is the usual implementation. " + "This bean may be given any name."); } FreeMarkerRegistration registration = new FreeMarkerRegistration(); this.viewResolvers.add(registration.getViewResolver()); return registration; }
if (!checkBeanOfType(org.springframework.web.servlet.view.velocity.VelocityConfigurer.class)) { throw new BeanInitializationException("In addition to a Velocity view resolver " + "there must also be a single VelocityConfig bean in this web application context " +