Aspect around call on annotated field
问题 I want AspectJ to inject the measuring code around all invocations of any method, on fields annotated with @Measured and capture the method's name. This is what I have: @Pointcut("get(@my.annotation.Measured * *) && @annotation(measured)") public void fieldAnnotatedWithMeasured(Measured measured) {} @Around(value = "fieldAnnotatedWithMeasured(measured)", argNames = "joinPoint,measured") public Object measureField(ProceedingJoinPoint joinPoint, Measured measured) throws Throwable {...} Use