WIP: welcom + error - 404 anstatt 500
[maven-thymeleaf-skin] / src / main / java / de / juplo / thymeproxy / Application.java
index ff5174a..7eb7333 100644 (file)
@@ -114,7 +114,13 @@ public class Application extends WebMvcConfigurerAdapter
   @Bean
   public View error(ThymeleafViewResolver resolver) throws Exception
   {
-    return resolver.resolveViewName("templates/error", Locale.getDefault());
+    return resolver.resolveViewName("templates/500", Locale.getDefault());
+  }
+
+  @Bean
+  public ExceptionMappings exceptionMappings()
+  {
+    return new ExceptionMappings();
   }