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 @@