當前位置: 首頁>>代碼示例>>Java>>正文


Java InternalResourceViewResolver.setViewClass方法代碼示例

本文整理匯總了Java中org.springframework.web.servlet.view.InternalResourceViewResolver.setViewClass方法的典型用法代碼示例。如果您正苦於以下問題:Java InternalResourceViewResolver.setViewClass方法的具體用法?Java InternalResourceViewResolver.setViewClass怎麽用?Java InternalResourceViewResolver.setViewClass使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.springframework.web.servlet.view.InternalResourceViewResolver的用法示例。


在下文中一共展示了InternalResourceViewResolver.setViewClass方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setupViewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
public InternalResourceViewResolver setupViewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setPrefix("/");
    resolver.setSuffix(".jsp");
    resolver.setContentType("text/html; charset-utf-8");
    resolver.setViewClass(JstlView.class);
    return resolver;
}
 
開發者ID:andrsam,項目名稱:bookshelf,代碼行數:10,代碼來源:WebConfig.java

示例2: configureViewResolvers

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
/**
    * Configure ViewResolvers to deliver preferred views.
    */
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {

	InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
	viewResolver.setViewClass(JstlView.class);
	viewResolver.setPrefix("/WEB-INF/views/");
	viewResolver.setSuffix(".jsp");
	registry.viewResolver(viewResolver);
}
 
開發者ID:mustafamym,項目名稱:FeedbackCollectionAndMgmtSystem,代碼行數:13,代碼來源:AppConfig.java

示例3: viewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
public ViewResolver viewResolver() {
    final InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setViewClass(JstlView.class);
    resolver.setPrefix("/WEB-INF/views/");
    resolver.setSuffix(".jsp");
    return resolver;
}
 
開發者ID:cerner,項目名稱:jwala,代碼行數:9,代碼來源:ApacheEnterpriseManagerWebConfig.java

示例4: setupViewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
public InternalResourceViewResolver setupViewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setViewClass(JstlView.class);
    resolver.setPrefix("/WEB-INF/");
    resolver.setSuffix(".html");
    return resolver;
}
 
開發者ID:kbss-cvut,項目名稱:reporting-tool,代碼行數:9,代碼來源:WebAppConfig.java

示例5: configureViewResolvers

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
    viewResolver.setViewClass(JstlView.class);
    viewResolver.setPrefix("/WEB-INF/views/");
    viewResolver.setSuffix(".jsp");
    registry.viewResolver(viewResolver);
}
 
開發者ID:caseydunham,項目名稱:hibernate-sandbox,代碼行數:9,代碼來源:Application.java

示例6: getViewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
public static InternalResourceViewResolver getViewResolver() {  
    InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
    viewResolver.setViewClass(JstlView.class);
    viewResolver.setPrefix("/WEB-INF/jsp/");
    viewResolver.setSuffix(".jsp");
    return viewResolver;
}
 
開發者ID:rmap-project,項目名稱:rmap,代碼行數:8,代碼來源:TestUtils.java

示例7: viewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
public ViewResolver viewResolver() {
    final InternalResourceViewResolver resolver = new InternalResourceViewResolver();

    resolver.setViewClass(JstlView.class);
    resolver.setPrefix("/WEB-INF/jsp/");
    resolver.setSuffix(".jsp");

    return resolver;
}
 
開發者ID:suomenriistakeskus,項目名稱:oma-riista-web,代碼行數:11,代碼來源:WebMVCConfig.java

示例8: viewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
/**
 * Mapeia todas as páginas JSP.
 *
 * @return o resolver da camada visão
 */
@Bean
public ViewResolver viewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();

    resolver.setViewClass(JstlView.class);
    resolver.setPrefix("/");
    resolver.setSuffix(".jsp");

    return resolver;
}
 
開發者ID:ortolanph,項目名稱:hojeehdiaderua,代碼行數:16,代碼來源:AppConfig.java

示例9: viewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
public ViewResolver viewResolver() {
	InternalResourceViewResolver resolver = new InternalResourceViewResolver();
	resolver.setViewClass(JstlView.class);
	resolver.setPrefix("/WEB-INF/views/");
	resolver.setSuffix(".jsp");
	return resolver;
}
 
開發者ID:shilongdai,項目名稱:bookManager,代碼行數:9,代碼來源:ServletApplicationContextConfig.java

示例10: viewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
public ViewResolver viewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setPrefix("/WEB-INF/views/");
    resolver.setSuffix(".jsp");
    resolver.setCache(false);
    resolver.setViewClass(JstlView.class);
    return resolver;
}
 
開發者ID:synchronoss,項目名稱:nio-multipart,代碼行數:10,代碼來源:WebConfig.java

示例11: jspViewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
InternalResourceViewResolver jspViewResolver() {
    final InternalResourceViewResolver vr = new InternalResourceViewResolver();
    vr.setPrefix(prefix);
    vr.setSuffix(suffix);
    vr.setViewClass(JstlView.class);
    vr.setViewNames(viewNames);
    return vr;
}
 
開發者ID:Spring-Squad,項目名稱:jsp-thymeleaf-config,代碼行數:10,代碼來源:AppConfig.java

示例12: getViewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
/**
 * Gets the internal resource view resolver.
 *
 * @return the internal resource view resolver
 */
@Bean(name = "jspViewResolver")
public ViewResolver getViewResolver() {
  logger.debug("Instantiated internalResourceViewResolver");
  InternalResourceViewResolver resolver = new InternalResourceViewResolver();
  resolver.setViewClass(JstlView.class);
  resolver.setPrefix("/WEB-INF/jsp/");
  resolver.setSuffix(".jsp");
  return resolver;
}
 
開發者ID:psi-probe,項目名稱:psi-probe,代碼行數:15,代碼來源:ProbeConfig.java

示例13: viewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
public ViewResolver viewResolver() {
    final InternalResourceViewResolver bean = new InternalResourceViewResolver();
    bean.setViewClass(JstlView.class);
    bean.setPrefix("/WEB-INF/view/");
    bean.setSuffix(".jsp");
    return bean;
}
 
開發者ID:RamuRChenchaiah,項目名稱:SpringSecurity-registration-login,代碼行數:9,代碼來源:MvcConfig.java

示例14: view

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
@Description("Default viewClass: JSTL view (JSP with html output)")
public ViewResolver internalResourceViewResolver() {
	// Example: a logical view name of 'vets' is mapped to
	// '/WEB-INF/jsp/vets.jsp'
	InternalResourceViewResolver bean = new InternalResourceViewResolver();
	bean.setViewClass(JstlView.class);
	bean.setPrefix("/WEB-INF/jsp/");
	bean.setSuffix(".jsp");
	return bean;
}
 
開發者ID:YoannBuch,項目名稱:DependencyInjectionAgent,代碼行數:12,代碼來源:MvcViewConfig.java

示例15: jspViewResolver

import org.springframework.web.servlet.view.InternalResourceViewResolver; //導入方法依賴的package包/類
@Bean
public InternalResourceViewResolver jspViewResolver() {
    InternalResourceViewResolver resolver = new InternalResourceViewResolver();
    resolver.setOrder(1);
    resolver.setPrefix("/WEB-INF/views/");
    resolver.setSuffix(".jsp");
    resolver.setRedirectHttp10Compatible(false);
    resolver.setViewClass(JstlView.class);
    return resolver;
}
 
開發者ID:srinikandula,項目名稱:mybus,代碼行數:11,代碼來源:WebApplicationConfig.java


注:本文中的org.springframework.web.servlet.view.InternalResourceViewResolver.setViewClass方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。