当前位置: 首页>>代码示例>>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;未经允许,请勿转载。