Skip to content

Commit b6be006

Browse files
author
carl
committed
fix(异常): 全局异常处理器中方法名字错误
1 parent 1f4934e commit b6be006

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)