Java 类org.springframework.web.servlet.view.tiles2.TilesView 实例源码

项目:opentipbot    文件:WebAppContext.java   
@Bean
public ViewResolver contentNegotiatingViewResolver(
        ContentNegotiationManager manager) {

    List< ViewResolver > resolvers = new ArrayList<ViewResolver>();

    UrlBasedViewResolver viewResolver = new UrlBasedViewResolver();
    viewResolver.setViewClass(TilesView.class);
    resolvers.add(viewResolver);

    JsonViewResolver r2 = new JsonViewResolver();
    resolvers.add(r2);

    ContentNegotiatingViewResolver resolver = new ContentNegotiatingViewResolver();
    resolver.setViewResolvers(resolvers);
    resolver.setContentNegotiationManager(manager);
    return resolver;

}
项目:springfield    文件:WebmvcRenderConfiguration.java   
@Bean
public UrlBasedViewResolver springfieldWebmvcRenderTilesView()throws Exception{
    UrlBasedViewResolver bean = new UrlBasedViewResolver();
    bean.setViewClass(TilesView.class);
    bean.setOrder(Ordered.LOWEST_PRECEDENCE);
    return bean;
}
项目:springfield    文件:ContextWebmvcBase.java   
@Bean
public UrlBasedViewResolver springfieldTilesView()throws Exception{
    UrlBasedViewResolver bean = new UrlBasedViewResolver();
    bean.setViewClass(TilesView.class);
    bean.setOrder(Ordered.LOWEST_PRECEDENCE);
    return bean;
}