本文整理汇总了Java中org.springframework.web.servlet.view.tiles2.TilesView类的典型用法代码示例。如果您正苦于以下问题:Java TilesView类的具体用法?Java TilesView怎么用?Java TilesView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TilesView类属于org.springframework.web.servlet.view.tiles2包,在下文中一共展示了TilesView类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: contentNegotiatingViewResolver
import org.springframework.web.servlet.view.tiles2.TilesView; //导入依赖的package包/类
@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;
}
示例2: springfieldWebmvcRenderTilesView
import org.springframework.web.servlet.view.tiles2.TilesView; //导入依赖的package包/类
@Bean
public UrlBasedViewResolver springfieldWebmvcRenderTilesView()throws Exception{
UrlBasedViewResolver bean = new UrlBasedViewResolver();
bean.setViewClass(TilesView.class);
bean.setOrder(Ordered.LOWEST_PRECEDENCE);
return bean;
}
示例3: springfieldTilesView
import org.springframework.web.servlet.view.tiles2.TilesView; //导入依赖的package包/类
@Bean
public UrlBasedViewResolver springfieldTilesView()throws Exception{
UrlBasedViewResolver bean = new UrlBasedViewResolver();
bean.setViewClass(TilesView.class);
bean.setOrder(Ordered.LOWEST_PRECEDENCE);
return bean;
}