获取连接点的类名和方法名

public void getjoinpoint(JoinPoint jp){
  String classname=jp.getTarget().getClass().getSimpleName();
  String methodname = jp.getSignature().getName();
}

猜你喜欢

转载自www.cnblogs.com/godliwei/p/9214552.html