@Bean
 public InternalResourceViewResolver jspViewResolver() {
   InternalResourceViewResolver bean = new InternalResourceViewResolver();
   bean.setPrefix("/WEB-INF/view/");
   bean.setSuffix(".jsp");
   bean.setOrder(1);
   return bean;
 }
Exemplo n.º 2
0
 @Bean
 public ViewResolver viewResolver() {
   InternalResourceViewResolver resolver = new InternalResourceViewResolver();
   resolver.setViewClass(JstlView.class);
   resolver.setPrefix("/WEB-INF/pages/");
   resolver.setSuffix(".jsp");
   resolver.setOrder(0);
   return resolver;
 }
Exemplo n.º 3
0
 @Bean
 public InternalResourceViewResolver internalResourceViewResolver() {
   final InternalResourceViewResolver resolver = new InternalResourceViewResolver();
   resolver.setPrefix("/WEB-INF/views/");
   resolver.setSuffix(".jsp");
   resolver.setOrder(2);
   resolver.setViewClass(BaseView.class);
   resolver.setExposedContextBeanNames(new String[] {"props"});
   return resolver;
 }
Exemplo n.º 4
0
 @Bean
 public InternalResourceViewResolver internalResourceViewResolver() {
   InternalResourceViewResolver jspResolver = new InternalResourceViewResolver();
   jspResolver.setViewClass(JstlView.class);
   jspResolver.setViewNames(new String[] {"jsp/*"});
   jspResolver.setPrefix("/WEB-INF/views/");
   jspResolver.setSuffix(".jsp");
   jspResolver.setOrder(1);
   return jspResolver;
 }