This commit is contained in:
2022-12-26 20:16:23 +08:00
parent 47660577b3
commit dd7d1dbbea
6 changed files with 310 additions and 10 deletions

View File

@@ -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 失效"));
}