Skip to content

Commit a48a7e2

Browse files
authored
Merge pull request #1118 from Awei-996/jdk17
fix(异常): 全局异常处理器中方法名字错误
2 parents 1f4934e + b6be006 commit a48a7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pig-common/pig-common-feign/src/main/java/com/pig4cloud/pig/common/feign/sentinel/handle/GlobalBizExceptionHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public R bindExceptionHandler(BindException exception) {
131131
*/
132132
@ExceptionHandler({ NoResourceFoundException.class })
133133
@ResponseStatus(HttpStatus.NOT_FOUND)
134-
public R bindExceptionHandler(NoResourceFoundException exception) {
134+
public R notFoundExceptionHandler(NoResourceFoundException exception) {
135135
log.debug("请求路径 404 {}", exception.getMessage());
136136
return R.failed(exception.getMessage());
137137
}

0 commit comments

Comments
 (0)