假设我定义了以下切面:
@Aspect
public class SampleAspect {
@Around(value="@annotation(sample.SampleAnnotation)")
public Object display(ProceedingJoinPoint joinPoint) throws Throwable {
// ...
}
}
还有注释
public @interface SampleAnnotation {
String value() default "defaultValue";
}
如果我的方面存在,有没有一种方法可以在显示方法中读取注释SampleAnnotation的值参数?
感谢您的帮助, erik