diff --git a/nflg-wms-starter/src/main/java/com/nflg/wms/starter/advice/GlobalRestControllerAdvice.java b/nflg-wms-starter/src/main/java/com/nflg/wms/starter/advice/GlobalRestControllerAdvice.java index e58bf4b0..7549d7f2 100644 --- a/nflg-wms-starter/src/main/java/com/nflg/wms/starter/advice/GlobalRestControllerAdvice.java +++ b/nflg-wms-starter/src/main/java/com/nflg/wms/starter/advice/GlobalRestControllerAdvice.java @@ -68,6 +68,8 @@ public class GlobalRestControllerAdvice { @ExceptionHandler(NotLoginException.class) @ResponseStatus(HttpStatus.UNAUTHORIZED) // 返回 401 状态码 public String handleNotLoginException(NotLoginException e) { + log.error("未登录异常类型: {}", e.getType()); + log.error("未登录异常信息: {}", e.getMessage()); return "请重新登录"; }