X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fthymeproxy%2FApplication.java;h=48bea7dbdeafebc022fc5e21852a8c3249235498;hb=22713c1dd38e87591230b5b03d8fd6abb33e8cf1;hp=62ed17102b98112991ee5bed62a9ae12e5e3a657;hpb=b9c183cfe8a2ecd6e5db6bd09c015a14152afe14;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 62ed171..48bea7d 100644 --- a/src/main/java/de/juplo/thymeproxy/Application.java +++ b/src/main/java/de/juplo/thymeproxy/Application.java @@ -117,6 +117,12 @@ public class Application extends WebMvcConfigurerAdapter return resolver.resolveViewName("templates/500", Locale.getDefault()); } + @Bean + public DefaultExceptionHandler defaultExceptionHandler() + { + return new DefaultExceptionHandler(); + } + @Override public void addViewControllers(ViewControllerRegistry registry)