From 356da5603506794a52b06ebaf9d1d37b36d971ec Mon Sep 17 00:00:00 2001 From: meng <154040976@qq.com> Date: Wed, 1 May 2019 21:48:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AB=E6=AD=A3=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/len/exception/CustomErrorViewResolver.java | 4 ++-- len-sys/src/main/resources/ftl/main/main.ftl | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/len-core/src/main/java/com/len/exception/CustomErrorViewResolver.java b/len-core/src/main/java/com/len/exception/CustomErrorViewResolver.java index cfb5aa5..bf14297 100644 --- a/len-core/src/main/java/com/len/exception/CustomErrorViewResolver.java +++ b/len-core/src/main/java/com/len/exception/CustomErrorViewResolver.java @@ -28,9 +28,9 @@ public class CustomErrorViewResolver implements ErrorViewResolver { ModelAndView andView = new ModelAndView(); andView.addObject("message", model.get("message")); - if ("404".equals(status.value())) { + if (status.value() == 404) { andView.setViewName(PAGE_404); - } else if ("403".equals(status.value())) { + } else if (status.value() == 403) { andView.setViewName(PAGE_403); } else if (isServerError) { andView.setViewName(PAGE_500); diff --git a/len-sys/src/main/resources/ftl/main/main.ftl b/len-sys/src/main/resources/ftl/main/main.ftl index 4b602e6..662aa1a 100644 --- a/len-sys/src/main/resources/ftl/main/main.ftl +++ b/len-sys/src/main/resources/ftl/main/main.ftl @@ -25,7 +25,6 @@