From 323a651aa041f99574d2b0a4d24b4e8fbfcfc4f5 Mon Sep 17 00:00:00 2001 From: zhouhao Date: Fri, 11 Jul 2025 09:41:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8A=A5=E5=91=8A=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/starter/reporter/GenericExceptionReport.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hsweb-starter/src/main/java/org/hswebframework/web/starter/reporter/GenericExceptionReport.java b/hsweb-starter/src/main/java/org/hswebframework/web/starter/reporter/GenericExceptionReport.java index c9c34af98..a715b861f 100644 --- a/hsweb-starter/src/main/java/org/hswebframework/web/starter/reporter/GenericExceptionReport.java +++ b/hsweb-starter/src/main/java/org/hswebframework/web/starter/reporter/GenericExceptionReport.java @@ -5,9 +5,10 @@ import org.hswebframework.web.exception.analyzer.ExceptionAnalyzers; import org.springframework.beans.BeansException; import org.springframework.boot.SpringBootExceptionReporter; import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.core.Ordered; @Slf4j -public class GenericExceptionReport implements SpringBootExceptionReporter { +public class GenericExceptionReport implements SpringBootExceptionReporter , Ordered { public GenericExceptionReport(ConfigurableApplicationContext context) { @@ -19,4 +20,8 @@ public class GenericExceptionReport implements SpringBootExceptionReporter { return ExceptionAnalyzers.analyze(failure); } + @Override + public int getOrder() { + return Ordered.HIGHEST_PRECEDENCE; + } }