|
@@ -32,7 +32,6 @@ public class ExceptionController {
|
|
|
@ResponseStatus(HttpStatus.UNAUTHORIZED)
|
|
|
@ExceptionHandler(ShiroException.class)
|
|
|
public Result handle401(ShiroException e) {
|
|
|
-// return Result.failure(5001, e.getMessage());
|
|
|
log.error("没有授权1");
|
|
|
return Result.failure(5001, "没有授权");
|
|
|
}
|
|
@@ -55,8 +54,6 @@ public class ExceptionController {
|
|
|
@ExceptionHandler(Exception.class)
|
|
|
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
|
|
public Result globalException(HttpServletRequest request, Throwable ex) {
|
|
|
-// System.out.println("111111111111111111");
|
|
|
-// log.error(ex.toString());
|
|
|
StringWriter trace=new StringWriter();
|
|
|
ex.printStackTrace(new PrintWriter(trace));
|
|
|
log.error(trace.toString());
|