From 81acccfe66c439bdaf40ea3e578d12dbee92026b Mon Sep 17 00:00:00 2001 From: thinkgem Date: Fri, 1 Nov 2024 19:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20mvc=20=E6=8E=A5=E5=8F=97?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E7=B1=BB=E5=9E=8B=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=98=BE=E7=A4=BA=EF=BC=8C=E6=96=B9=E4=BE=BF?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/jeesite/common/lang/ExceptionUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/src/main/java/com/jeesite/common/lang/ExceptionUtils.java b/common/src/main/java/com/jeesite/common/lang/ExceptionUtils.java index 6f30d40a..af9f38ae 100644 --- a/common/src/main/java/com/jeesite/common/lang/ExceptionUtils.java +++ b/common/src/main/java/com/jeesite/common/lang/ExceptionUtils.java @@ -28,6 +28,8 @@ public class ExceptionUtils { ex = (Throwable) request.getAttribute("exception"); } else if (request.getAttribute(RequestDispatcher.ERROR_EXCEPTION) != null) { ex = (Throwable) request.getAttribute(RequestDispatcher.ERROR_EXCEPTION); + } else if (request.getAttribute("org.springframework.web.servlet.DispatcherServlet.EXCEPTION") != null) { + ex = (Throwable) request.getAttribute("org.springframework.web.servlet.DispatcherServlet.EXCEPTION"); } return ex; }