Code example for BeanNameViewResolver

1
        return mappingJacksonJsonView; 
    } 
 
    @Bean 
    public BeanNameViewResolver beanNameViewResolver() { 
        return new BeanNameViewResolver(); 
    } 
 
    /** 
     * <bean id="content" class="com.springsource.samples.rest.SampleContentAtomView"/> 
     */ 
 
 
    @Bean 
    public FreeMarkerViewResolver freemarkerViewResolver() { 
        FreeMarkerViewResolver resolver = new FreeMarkerViewResolver(); 
        resolver.setCache(true); 
        resolver.setPrefix(""); 
        resolver.setSuffix(".ftl"); 
        return resolver;