本文整理匯總了Java中org.springframework.web.servlet.view.UrlBasedViewResolver.setOrder方法的典型用法代碼示例。如果您正苦於以下問題:Java UrlBasedViewResolver.setOrder方法的具體用法?Java UrlBasedViewResolver.setOrder怎麽用?Java UrlBasedViewResolver.setOrder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.springframework.web.servlet.view.UrlBasedViewResolver
的用法示例。
在下文中一共展示了UrlBasedViewResolver.setOrder方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: springfieldWebmvcRenderTilesView
import org.springframework.web.servlet.view.UrlBasedViewResolver; //導入方法依賴的package包/類
@Bean
public UrlBasedViewResolver springfieldWebmvcRenderTilesView()throws Exception{
UrlBasedViewResolver bean = new UrlBasedViewResolver();
bean.setViewClass(TilesView.class);
bean.setOrder(Ordered.LOWEST_PRECEDENCE);
return bean;
}
示例2: springfieldTilesView
import org.springframework.web.servlet.view.UrlBasedViewResolver; //導入方法依賴的package包/類
@Bean
public UrlBasedViewResolver springfieldTilesView()throws Exception{
UrlBasedViewResolver bean = new UrlBasedViewResolver();
bean.setViewClass(TilesView.class);
bean.setOrder(Ordered.LOWEST_PRECEDENCE);
return bean;
}
示例3: urlBasedViewResolver
import org.springframework.web.servlet.view.UrlBasedViewResolver; //導入方法依賴的package包/類
@Bean
public UrlBasedViewResolver urlBasedViewResolver() {
UrlBasedViewResolver viewResolver = new UrlBasedViewResolver();
viewResolver.setOrder(2);
viewResolver.setViewClass(org.springframework.web.servlet.view.InternalResourceView.class);
return viewResolver;
}