From e55e7e886739838ddecfddbbf8bf75daa882fe0e Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 30 Jul 2023 22:34:31 -0700 Subject: [PATCH] Remove Tiles !!!! --- .../com/wisemapping/config/AppConfig.java | 12 ++-------- .../main/webapp/WEB-INF/defs/definitions.xml | 23 ------------------- 2 files changed, 2 insertions(+), 33 deletions(-) delete mode 100644 wise-webapp/src/main/webapp/WEB-INF/defs/definitions.xml diff --git a/wise-webapp/src/main/java/com/wisemapping/config/AppConfig.java b/wise-webapp/src/main/java/com/wisemapping/config/AppConfig.java index 561000f5..9bc43335 100644 --- a/wise-webapp/src/main/java/com/wisemapping/config/AppConfig.java +++ b/wise-webapp/src/main/java/com/wisemapping/config/AppConfig.java @@ -19,22 +19,14 @@ public class AppConfig { @Bean HandlerExceptionResolver errorHandler() { - final SimpleMappingExceptionResolver result = - new SimpleMappingExceptionResolver(); - - //exception to view name mapping - final Properties p = new Properties(); - p.setProperty(MapNotPublicSecurityException.class.getName(), "reactInclude"); - p.setProperty(AccessDeniedSecurityException.class.getName(), "reactInclude"); - result.setExceptionMappings(p); + final SimpleMappingExceptionResolver result = new SimpleMappingExceptionResolver(); //mapping status code with view response. result.addStatusCode("reactInclude", 403); //setting default error view - result.setDefaultErrorView("errorTemplate"); + result.setDefaultErrorView("reactInclude"); result.setDefaultStatusCode(500); - return result; } diff --git a/wise-webapp/src/main/webapp/WEB-INF/defs/definitions.xml b/wise-webapp/src/main/webapp/WEB-INF/defs/definitions.xml deleted file mode 100644 index 4c9d2687..00000000 --- a/wise-webapp/src/main/webapp/WEB-INF/defs/definitions.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -