use of org.springframework.web.servlet.view.InternalResourceViewResolver in project spring-mvc-31-demo by rstoyanchev.
the class WebConfig method viewResolver.
@Bean
public InternalResourceViewResolver viewResolver() {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setPrefix("/WEB-INF/views/");
resolver.setSuffix(".jsp");
return resolver;
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project shijie by tengxing.
the class FreemarkerConfig method internalResourceViewResolver.
// @Bean
public InternalResourceViewResolver internalResourceViewResolver() {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
// - 配置前缀
resolver.setPrefix("/WEB-INF/es/");
// - 配置后缀
resolver.setSuffix(".jsp");
return resolver;
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project spring-mvc-showcase by spring-projects.
the class FormControllerTests method setup.
@Before
public void setup() {
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
viewResolver.setPrefix("/WEB-INF/");
viewResolver.setSuffix(".jsp");
this.mockMvc = standaloneSetup(new FormController()).setViewResolvers(viewResolver).build();
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project java-spring-web by opentracing-contrib.
the class SpringMVCConfiguration method configureInternalResourceViewResolver.
/**
* Basic setup for JSP views.
*/
@Bean
public InternalResourceViewResolver configureInternalResourceViewResolver() {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setPrefix("/WEB-INF/jsp/");
resolver.setSuffix(".jsp");
return resolver;
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project shiro by apache.
the class JspViewsConfig method getViewResolver.
@Bean
@Order(1)
public ViewResolver getViewResolver() {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setViewClass(JstlView.class);
resolver.setPrefix("/WEB-INF/resources/");
resolver.setSuffix(".jsp");
return resolver;
}
Aggregations