当前位置: 首页>>代码示例>>Java>>正文


Java ViewResolverRegistry类代码示例

本文整理汇总了Java中org.springframework.web.servlet.config.annotation.ViewResolverRegistry的典型用法代码示例。如果您正苦于以下问题:Java ViewResolverRegistry类的具体用法?Java ViewResolverRegistry怎么用?Java ViewResolverRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ViewResolverRegistry类属于org.springframework.web.servlet.config.annotation包,在下文中一共展示了ViewResolverRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的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

示例2: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry)
{
    registry.viewResolver(
        new ReactViewResolver()
    );
}
 
开发者ID:fforw,项目名称:spring-react-example,代码行数:8,代码来源:WebConfiguration.java

示例3: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    super.configureViewResolvers(registry);
    InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
    viewResolver.setPrefix("/pages/");
    viewResolver.setSuffix(".jsp");
    registry.viewResolver(viewResolver);
}
 
开发者ID:SkywalkingTest,项目名称:Agent-Benchmarks,代码行数:9,代码来源:ApplicationConfigAdapter.java

示例4: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    ScriptTemplateViewResolver viewResolver = new ScriptTemplateViewResolver();
    viewResolver.setPrefix("/templates/");
    viewResolver.setSuffix(".js");
    registry.viewResolver(viewResolver);
    registry.scriptTemplate();
    super.configureViewResolvers(registry);
}
 
开发者ID:tinywind,项目名称:react-practice-web,代码行数:10,代码来源:WebApplication.java

示例5: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
	MappingJackson2JsonView mappingJackson2JsonView = new MappingJackson2JsonView();
	mappingJackson2JsonView.setObjectMapper(objectMapper);
	registry.enableContentNegotiation(true, mappingJackson2JsonView);
	registry.viewResolver(viewResolver);
}
 
开发者ID:candrews,项目名称:availability,代码行数:8,代码来源:WebMvcConfig.java

示例6: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的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);
	super.configureViewResolvers(registry);
}
 
开发者ID:leosilvadev,项目名称:SJPAReference,代码行数:11,代码来源:WebContext.java

示例7: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
	public void configureViewResolvers(ViewResolverRegistry registry) {
		registry
			.tiles();
//			.prefix("WEB-INF/views")
//			.suffix(".jspx");
	}
 
开发者ID:hantsy,项目名称:spring4-sandbox,代码行数:8,代码来源:WebConfig.java

示例8: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    FastJsonJsonView fastJsonJsonView = new FastJsonJsonView();
    registry.enableContentNegotiation(fastJsonJsonView);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:6,代码来源:Issue1405.java

示例9: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry)
{
	registry.viewResolver(getViewResolver());
}
 
开发者ID:tmply,项目名称:tmply,代码行数:6,代码来源:WebMvcConfig.java

示例10: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
	registry.tiles();
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:5,代码来源:JavaConfigTests.java

示例11: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
	registry.jsp("", "");
}
 
开发者ID:langtianya,项目名称:spring4-understanding,代码行数:5,代码来源:EncodedUriTests.java

示例12: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry.viewResolver(handlebars());
}
 
开发者ID:DTL-FAIRData,项目名称:FAIRDataPoint,代码行数:5,代码来源:RestApiContext.java

示例13: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry.viewResolver(new MustacheViewResolver());
}
 
开发者ID:AusDTO,项目名称:citizenship-appointment-server,代码行数:5,代码来源:WebMvcConfig.java

示例14: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry.scriptTemplate().prefix("/static/templates/").suffix(".html");
}
 
开发者ID:chanwookpark,项目名称:spirng-boot-sample-web-dustjs,代码行数:5,代码来源:ScriptTemplateConfiguration.java

示例15: configureViewResolvers

import org.springframework.web.servlet.config.annotation.ViewResolverRegistry; //导入依赖的package包/类
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
	TilesViewResolver viewResolver = new TilesViewResolver();
	viewResolver.setViewClass(TilesView.class);
	registry.viewResolver(viewResolver);
}
 
开发者ID:leosilvadev,项目名称:simplebank,代码行数:7,代码来源:WebConfig.java


注:本文中的org.springframework.web.servlet.config.annotation.ViewResolverRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。