@Override
 public void configureViewResolvers(ViewResolverRegistry registry) {
   UrlBasedViewResolver resolver = new UrlBasedViewResolver();
   resolver.setPrefix("/WEB-INF/classes/templates/");
   resolver.setSuffix(".html");
   resolver.setViewClass(InternalResourceView.class);
   registry.viewResolver(resolver);
 }
 @Override
 public void configureViewResolvers(ViewResolverRegistry registry) {
   InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
   viewResolver.setViewClass(JstlView.class);
   viewResolver.setPrefix("/WEB-INF/views/");
   viewResolver.setSuffix(".jsp");
   registry.viewResolver(viewResolver);
 }
 @Override
 public void configureViewResolvers(ViewResolverRegistry registry) {
   registry.viewResolver(tilesViewResolver());
 }