SysLoggerAspect.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //package com.diagbot.aop;
  2. //
  3. //import com.diagbot.biz.log.entity.SysLog;
  4. //import com.diagbot.enums.SysTypeEnum;
  5. //import com.diagbot.rabbit.MySender;
  6. //import com.diagbot.util.AopUtil;
  7. //import org.aspectj.lang.JoinPoint;
  8. //import org.aspectj.lang.annotation.Aspect;
  9. //import org.aspectj.lang.annotation.Before;
  10. //import org.aspectj.lang.annotation.Pointcut;
  11. //import org.springframework.beans.factory.annotation.Autowired;
  12. //import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
  13. //import org.springframework.stereotype.Component;
  14. //
  15. ///**
  16. // * @Description: 日志拦截切面
  17. // * @author: gaodm
  18. // * @time: 2018/8/2 13:36
  19. // */
  20. //@Aspect
  21. //@Component
  22. //@ConditionalOnProperty(prefix = "syslog", value = { "enable" }, havingValue = "true")
  23. //public class SysLoggerAspect {
  24. // @Autowired
  25. // private MySender mySender;
  26. //
  27. // @Pointcut("@annotation(com.diagbot.annotation.SysLogger)")
  28. // public void loggerPointCut() {
  29. //
  30. // }
  31. //
  32. // @Before("loggerPointCut()")
  33. // public void saveSysLog(JoinPoint joinPoint) {
  34. // //入参设置
  35. // SysLog sysLog = AopUtil.sysLoggerAspect(joinPoint, SysTypeEnum.LOG_SERVICE.getKey());
  36. // //保存系统日志
  37. // mySender.outputLogSend(sysLog);
  38. // }
  39. //
  40. //}
  41. //