From fcb42bfda9ea8c127ec6952852ca478d8d12565d Mon Sep 17 00:00:00 2001 From: thinkgem Date: Mon, 6 Nov 2023 15:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8C=85=E5=90=8D=E5=8F=96?= =?UTF-8?q?=E4=B8=8D=E5=88=B0jakarta=E5=BC=82=E5=B8=B8=E7=B1=BB=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/jeesite/common/lang/ExceptionUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 3330c994..7c6e5622 100644 --- a/common/src/main/java/com/jeesite/common/lang/ExceptionUtils.java +++ b/common/src/main/java/com/jeesite/common/lang/ExceptionUtils.java @@ -5,11 +5,11 @@ */ package com.jeesite.common.lang; +import jakarta.servlet.http.HttpServletRequest; + import java.io.PrintWriter; import java.io.StringWriter; -import jakarta.servlet.http.HttpServletRequest; - /** * 关于异常的工具类. * @author calvin @@ -26,8 +26,8 @@ public class ExceptionUtils { Throwable ex = null; if (request.getAttribute("exception") != null) { ex = (Throwable) request.getAttribute("exception"); - } else if (request.getAttribute("javax.servlet.error.exception") != null) { - ex = (Throwable) request.getAttribute("javax.servlet.error.exception"); + } else if (request.getAttribute("jakarta.servlet.error.exception") != null) { + ex = (Throwable) request.getAttribute("jakarta.servlet.error.exception"); } return ex; }