是否可以从 joinPoint 获取/设置线程名称?
@Around("call(void methodA())")
public Object conditionB(ProceedingJoinPoint joinPoint) throws Throwable
{
Object res = joinPoint.proceed();
System.out.println(Thread.currentThread().getName());
return res;
}
Thread.currentThread().getName()
main
从 AspectJ 类中获取线程的名称。是否可以获得(可能来自joinPoit)执行methodA的线程名称?