Java 类org.springframework.web.servlet.config.annotation.ViewResolverRegistry 实例源码

项目:FeedbackCollectionAndMgmtSystem    文件:AppConfig.java   
/**
    * 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);
}
项目:spring-react-example    文件:WebConfiguration.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry)
{
    registry.viewResolver(
        new ReactViewResolver()
    );
}
项目:Agent-Benchmarks    文件:ApplicationConfigAdapter.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    super.configureViewResolvers(registry);
    InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
    viewResolver.setPrefix("/pages/");
    viewResolver.setSuffix(".jsp");
    registry.viewResolver(viewResolver);
}
项目:Agent-Benchmarks    文件:ApplicationConfigAdapter.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    super.configureViewResolvers(registry);
    InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
    viewResolver.setPrefix("/pages/");
    viewResolver.setSuffix(".jsp");
    registry.viewResolver(viewResolver);
}
项目:Agent-Benchmarks    文件:ApplicationConfigAdapter.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    super.configureViewResolvers(registry);
    InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
    viewResolver.setPrefix("/pages/");
    viewResolver.setSuffix(".jsp");
    registry.viewResolver(viewResolver);
}
项目:Agent-Benchmarks    文件:ApplicationConfigAdapter.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    super.configureViewResolvers(registry);
    InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
    viewResolver.setPrefix("/pages/");
    viewResolver.setSuffix(".jsp");
    registry.viewResolver(viewResolver);
}
项目:react-practice-web    文件:WebApplication.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    ScriptTemplateViewResolver viewResolver = new ScriptTemplateViewResolver();
    viewResolver.setPrefix("/templates/");
    viewResolver.setSuffix(".js");
    registry.viewResolver(viewResolver);
    registry.scriptTemplate();
    super.configureViewResolvers(registry);
}
项目:availability    文件:WebMvcConfig.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    MappingJackson2JsonView mappingJackson2JsonView = new MappingJackson2JsonView();
    mappingJackson2JsonView.setObjectMapper(objectMapper);
    registry.enableContentNegotiation(true, mappingJackson2JsonView);
    registry.viewResolver(viewResolver);
}
项目:SJPAReference    文件:WebContext.java   
@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);
}
项目:spring4-sandbox    文件:WebConfig.java   
@Override
    public void configureViewResolvers(ViewResolverRegistry registry) {
        registry
            .tiles();
//          .prefix("WEB-INF/views")
//          .suffix(".jspx");
    }
项目:GitHub    文件:Issue1405.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    FastJsonJsonView fastJsonJsonView = new FastJsonJsonView();
    registry.enableContentNegotiation(fastJsonJsonView);
}
项目:tmply    文件:WebMvcConfig.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry)
{
    registry.viewResolver(getViewResolver());
}
项目:spring4-understanding    文件:JavaConfigTests.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry.tiles();
}
项目:spring4-understanding    文件:EncodedUriTests.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry.jsp("", "");
}
项目:FAIRDataPoint    文件:RestApiContext.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry.viewResolver(handlebars());
}
项目:citizenship-appointment-server    文件:WebMvcConfig.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry.viewResolver(new MustacheViewResolver());
}
项目:spirng-boot-sample-web-dustjs    文件:ScriptTemplateConfiguration.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry.scriptTemplate().prefix("/static/templates/").suffix(".html");
}
项目:simplebank    文件:WebConfig.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    TilesViewResolver viewResolver = new TilesViewResolver();
    viewResolver.setViewClass(TilesView.class);
    registry.viewResolver(viewResolver);
}
项目:arsnova-backend    文件:AppConfig.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry.viewResolver(new InternalResourceViewResolver());
}
项目:spring4-sandbox    文件:WebConfig.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    // registry.enableContentNegotiation(new MappingJackson2JsonView());
    registry.freeMarker().cache(false);
}
项目:spring4-sandbox    文件:WebConfig.java   
@Override
public void configureViewResolvers(ViewResolverRegistry registry) {
    registry
        .viewResolver(viewResolver());
}