import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


@Aspect
@Component
public class SearchCenterHSFConsumerAspect {

private static final Logger logger = LoggerFactory.getLogger("hsf_monitor_log");


/**
* 用来记录请求进入的时间,防止多线程时出错
*/
private ThreadLocal<Long> startTime = new ThreadLocal<>();


/**
* 定义切入点,controller下面的所有类的所有公有方法
*/
@Pointcut("bean(user1Service) || bean(user2Service) || bean(user3Service) || bean(user4Service) || bean(user5Service)")
        return sb.toString();
}

}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2021-09-07
  • 2021-10-11
  • 2021-08-18
  • 2022-12-23
  • 2021-11-08
猜你喜欢
  • 2021-05-12
  • 2021-09-03
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案