X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fthymeproxy%2FApplication.java;h=7eb7333f3559d281b16f0353b8727c5ec8f6e843;hb=b466674922d1b18ae4e7c6a2c894ae15867c2248;hp=ff5174a15dd06beac7f6905164af1916cfd7bece;hpb=ca2da8b36b6cf13c5b885ff7e74bc22d3576f6c7;p=maven-thymeleaf-skin diff --git a/src/main/java/de/juplo/thymeproxy/Application.java b/src/main/java/de/juplo/thymeproxy/Application.java index ff5174a..7eb7333 100644 --- a/src/main/java/de/juplo/thymeproxy/Application.java +++ b/src/main/java/de/juplo/thymeproxy/Application.java @@ -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(); }