修复 quick-login 插件循环依赖问题

This commit is contained in:
click33
2022-04-23 16:20:04 +08:00
parent 7302a34de0
commit 0c0b08c6c3
10 changed files with 49 additions and 33 deletions

View File

@@ -23,7 +23,7 @@
``` java
// 全局异常拦截拦截项目中的NotLoginException异常
@ExceptionHandler(NotLoginException.class)
public AjaxJson handlerNotLoginException(NotLoginException nle, HttpServletRequest request, HttpServletResponse response)
public SaResult handlerNotLoginException(NotLoginException nle)
throws Exception {
// 打印堆栈,以供调试
@@ -51,7 +51,7 @@ public AjaxJson handlerNotLoginException(NotLoginException nle, HttpServletReque
}
// 返回给前端
return AjaxJson.getError(message);
return SaResult.error(message);
}
```