|
@@ -1,8 +1,6 @@
|
|
|
package com.miaxis.framework.aspectj;
|
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
-import com.miaxis.common.utils.ServletUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.aspectj.lang.JoinPoint;
|
|
|
import org.aspectj.lang.ProceedingJoinPoint;
|
|
@@ -12,7 +10,6 @@ import org.springframework.web.context.request.RequestContextHolder;
|
|
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
-import java.util.Arrays;
|
|
|
|
|
|
@Aspect
|
|
|
@Component
|
|
@@ -45,7 +42,7 @@ public class LogFileAspect {
|
|
|
@AfterReturning(returning = "ret", pointcut = "logPoint()")// returning的值和doAfterReturning的参数名一致
|
|
|
public void doAfterReturning(Object ret) throws Throwable {
|
|
|
// 处理完请求,返回内容
|
|
|
- log.info("返回值 : " + JSON.toJSONString(ret));
|
|
|
+ //log.info("返回值 : " + JSON.toJSONString(ret));
|
|
|
}
|
|
|
|
|
|
@Around("logPoint()")
|