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 tutorials by eugenp.
the class SecureWebAppConfig method viewResolver.
@Bean
public ViewResolver viewResolver() {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setPrefix("/WEB-INF/secure/view/");
resolver.setSuffix(".jsp");
resolver.setViewClass(JstlView.class);
return resolver;
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project tutorials by eugenp.
the class MultipleLoginMvcConfig 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 ma-core-public by infiniteautomation.
the class MangoCoreSpringConfiguration method internalResourceViewResolver.
@Bean(name = "viewResolver")
public InternalResourceViewResolver internalResourceViewResolver() {
InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setViewClass(JstlView.class);
return resolver;
}
use of org.springframework.web.servlet.view.InternalResourceViewResolver in project GMM by Katharsas.
the class ApplicationConfiguration method jspViewResolver.
/**
* ViewResolver resolve the String return value from controller methods into templates (jsp or ftl).
*/
@Bean
public ViewResolver jspViewResolver() {
final InternalResourceViewResolver resolver = new InternalResourceViewResolver();
resolver.setOrder(255);
resolver.setViewClass(JstlView.class);
resolver.setPrefix("/WEB-INF/jsp/");
resolver.setSuffix(".jsp");
return resolver;
}
Aggregations