projects
/
maven-thymeleaf-skin
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP: welcom + error - 404 anstatt 500
[maven-thymeleaf-skin]
/
src
/
main
/
java
/
de
/
juplo
/
thymeproxy
/
Application.java
diff --git
a/src/main/java/de/juplo/thymeproxy/Application.java
b/src/main/java/de/juplo/thymeproxy/Application.java
index
ff5174a
..
7eb7333
100644
(file)
--- 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
{
@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();
}
}