【发布时间】:2016-04-16 06:54:17
【问题描述】:
我想写一个 aop 到 grpc 接口方法,如何从 StreamObserver 获取泛型类型
@Around(value = "execution(* com.test.grpc.controller.*.*(..))")
public void around(ProceedingJoinPoint point) throws Throwable {
long methodStartTime = System.currentTimeMillis();
String methodName = point.getSignature().getDeclaringTypeName() +
"." + point.getSignature().getName();
point.proceed();
}
【问题讨论】: