WIP: welcom + error - 404 anstatt 500
[maven-thymeleaf-skin] / src / main / java / de / juplo / thymeproxy / Application.java
index 62ed171..7eb7333 100644 (file)
@@ -117,6 +117,12 @@ public class Application extends WebMvcConfigurerAdapter
     return resolver.resolveViewName("templates/500", Locale.getDefault());
   }
 
+  @Bean
+  public ExceptionMappings exceptionMappings()
+  {
+    return new ExceptionMappings();
+  }
+
 
   @Override
   public void addViewControllers(ViewControllerRegistry registry)