|
@@ -80,7 +80,7 @@ public class GlobalExceptionHandler implements ResponseBodyAdvice<Object> {
|
|
|
return o;
|
|
|
}
|
|
|
|
|
|
- // 记录当前 访问URL、访问人IP
|
|
|
+ // -- 记录当前 访问URL、访问人IP --------------------------------------------------
|
|
|
private static void printRequestInfo() {
|
|
|
// 获取请求的URL
|
|
|
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
|
|
@@ -230,6 +230,7 @@ public class GlobalExceptionHandler implements ResponseBodyAdvice<Object> {
|
|
|
public Result handleCustException(CustException e) {
|
|
|
System.out.println("****** CustException.class: ******");
|
|
|
printWarnException(e);
|
|
|
+// printErrorException(e);
|
|
|
return Result.error(e.getErrorCode() != null ? e.getErrorCode() : ResultEnum.PARAMETER_EXCEPTION.getCode(), e.getMessage(), e.getErrorObject());
|
|
|
}
|
|
|
/**
|