Skip to content

Commit 013be64

Browse files
committed
Update springboot-handle-exception-plus.md
1 parent 5d71e1f commit 013be64

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/advanced/springboot-handle-exception-plus.md

+1
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ public class GlobalExceptionHandler {
241241
}
242242
// 不为空说明有方法处理异常
243243
if (!matches.isEmpty()) {
244+
// 按照匹配程度从小到大排序
244245
matches.sort(new ExceptionDepthComparator(exceptionType));
245246
// 返回处理异常的方法
246247
return this.mappedMethods.get(matches.get(0));

0 commit comments

Comments
 (0)