Пример #1
0
 @Bean
 public VelocityViewResolver viewResolver() {
   VelocityViewResolver velocityViewResolver = new VelocityViewResolver();
   velocityViewResolver.setPrefix("");
   velocityViewResolver.setSuffix(".vm");
   return velocityViewResolver;
 }
Пример #2
0
 @Bean
 public VelocityViewResolver viewResolver() {
   VelocityViewResolver viewResolver = new VelocityViewResolver();
   viewResolver.setViewClass(VelocityToolboxView.class);
   viewResolver.setSuffix(".vm");
   viewResolver.setContentType("text/html; charset=utf-8");
   return viewResolver;
 }