类 ApiPrintAspect

java.lang.Object
cn.gmlee.tools.logback.aop.ApiPrintAspect

@Component public class ApiPrintAspect extends Object
The type Api print aspect.
作者:
- Jas°
  • 构造器详细资料

    • ApiPrintAspect

      public ApiPrintAspect()
  • 方法详细资料

    • pointcut

      public void pointcut()
      Pointcut.
    • before

      public void before(org.aspectj.lang.JoinPoint point)
      输出内容如下: 1. 请求地址 2. 请求说明 [ApiPrint - value(version)] 3. 请求时间
      参数:
      point - the point
    • afterReturning

      public void afterReturning(org.aspectj.lang.JoinPoint point, Object result)
      输出内容如下: 1. 请求地址 2. 请求说明 [ApiPrint - value(version)] 3. 请求参数 4. 响应参数 5. 响应时间
      参数:
      point - the point
      result - the result
    • afterThrowing

      public void afterThrowing(org.aspectj.lang.JoinPoint point, Exception e)
      输出内容如下: 1. 请求地址 2. 请求说明 [ApiPrint - value(version)] 3. 请求参数 4. 异常信息 5. 响应时间
      参数:
      point - the point
      e - the e
    • getMaxlength

      public int getMaxlength(ApiPrint apiPrint)
      Get maxlength long.
      返回:
      the long