@Bean
 public ViewResolver viewResolver() {
   HandlebarsViewResolver viewResolver = new HandlebarsViewResolver();
   viewResolver.setPrefix("/WEB-INF/templates/");
   viewResolver.setSuffix(".html");
   viewResolver.setCache(false);
   return viewResolver;
 }
Пример #2
0
  @Bean
  public HandlebarsViewResolver handlebarsViewResolver() {
    HandlebarsViewResolver viewResolver = new HandlebarsViewResolver();
    viewResolver.setOrder(ORDER);
    viewResolver.setFailOnMissingFile(FAIL_ON_MISSING_FILE);
    viewResolver.setCache(false);

    viewResolver.setPrefix(HANDLEBARS_VIEW_BASE_PATH);
    viewResolver.setSuffix(HANDLEBARS_VIEW_SUFFIX);

    return viewResolver;
  }