【修复】ApiAccessLogInterceptor 处理 request body 为 "" 空串的情况

This commit is contained in:
YunaiV 2024-05-03 09:37:49 +08:00
parent 29746d1459
commit 88ac5be882

View File

@ -43,7 +43,7 @@ public class ApiAccessLogInterceptor implements HandlerInterceptor {
log.info("[preHandle][开始请求 URL({}) 无参数]", request.getRequestURI()); log.info("[preHandle][开始请求 URL({}) 无参数]", request.getRequestURI());
} else { } else {
log.info("[preHandle][开始请求 URL({}) 参数({})]", request.getRequestURI(), log.info("[preHandle][开始请求 URL({}) 参数({})]", request.getRequestURI(),
StrUtil.nullToDefault(requestBody, queryString.toString())); StrUtil.blankToDefault(requestBody, queryString.toString()));
} }
// 计时 // 计时
StopWatch stopWatch = new StopWatch(); StopWatch stopWatch = new StopWatch();