+ @Bean
+ public View error(ThymeleafViewResolver resolver) throws Exception
+ {
+ return resolver.resolveViewName("templates/500", Locale.getDefault());
+ }
+
+ @Bean
+ public ExceptionMappings exceptionMappings()
+ {
+ return new ExceptionMappings();
+ }
+
+
+ @Override
+ public void addViewControllers(ViewControllerRegistry registry)
+ {
+ registry.addViewController("/").setViewName("forward:index.html");
+ }
+