mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-07 21:55:57 +08:00
refactor: 优化错误报告顺序
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user