修改
This commit is contained in:
@@ -57,6 +57,7 @@ public class GlobalExceptionHandler {
|
||||
@ExceptionHandler(value = NotLoginException.class)
|
||||
public ResponseEntity<ApiError> notLoginException(Exception e) {
|
||||
// log.error(ThrowableUtil.getStackTrace(e));
|
||||
log.error("token超时:-------------------------------------"+e.getMessage());
|
||||
return buildResponseEntity(ApiError.error(401,"token 失效"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user