+ @Bean
+ public ThymeleafView error(SpringTemplateEngine templateEngine)
+ {
+ return new ErrorThymeleafView(templateEngine, "/thymeleaf/error.html");
+ }
+
+ @Override
+ public void addViewControllers(ViewControllerRegistry registry)
+ {
+ registry.addViewController("/").setViewName("forward:index.html");
+ }
+