日志打印 避免回填

This commit is contained in:
2024-12-09 15:38:31 +08:00
parent 357595bda9
commit 6771ad1d25

View File

@@ -35,11 +35,14 @@ public class AppApiMethodAspect {
@Around("pkg()")
public Object around(ProceedingJoinPoint pjp) throws Throwable {
long start = System.currentTimeMillis();
// 执行被拦截的方法
Object result = pjp.proceed();
//请求的参数
//避免回填
Object[] args = pjp.getArgs();
String params = new Gson().toJson(args);
// 执行被拦截的方法
Object result = pjp.proceed();
//请求的参数
String resultJson = new Gson().toJson(result);
HttpServletRequest request = HttpContextUtils.getHttpServletRequest();