use of org.springframework.web.servlet.view.InternalResourceViewResolver in project tutorials by eugenp.
the class SimpleUrlHandlerMappingConfig method viewResolver.
@Bean
public ViewResolver viewResolver() {
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
viewResolver.setPrefix("/");
viewResolver.setSuffix(".jsp");
return viewResolver;
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project tutorials by eugenp.
the class AppConfig method internalResourceViewResolver.
@Bean
public InternalResourceViewResolver internalResourceViewResolver() {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setOrder(1);
resolver.setPrefix("/WEB-INF/views/");
resolver.setSuffix(".jsp");
resolver.setViewClass(JstlView.class);
return resolver;
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project tutorials by eugenp.
the class ApplicationConfiguration method htmlViewResolver.
@Bean
public InternalResourceViewResolver htmlViewResolver() {
InternalResourceViewResolver bean = new InternalResourceViewResolver();
bean.setPrefix("/WEB-INF/html/");
bean.setSuffix(".html");
bean.setOrder(2);
return bean;
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project tutorials by eugenp.
the class MvcConfig method viewResolver.
@Bean
public ViewResolver viewResolver() {
final InternalResourceViewResolver bean = new InternalResourceViewResolver();
bean.setViewClass(JstlView.class);
bean.setPrefix("/WEB-INF/view/");
bean.setSuffix(".jsp");
return bean;
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project survey by markoniemi.
the class WebMvcConfig method getViewResolver.
@Bean
public ViewResolver getViewResolver() {
InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
viewResolver.setViewClass(JstlView.class);
viewResolver.setPrefix("/WEB-INF/pages");
viewResolver.setSuffix(".jsp");
return viewResolver;
}
Aggregations