考虑我已经定义了以下方面:
@Aspect
public class SampleAspect {
@Around(value="@annotation(sample.SampleAnnotation)")
public Object display(ProceedingJoinPoint joinPoint) throws Throwable {
// ...
}
}
和注释
public @interface SampleAnnotation {
String value() default "defaultValue";
}
如果我的方面有没有办法在显示方法中读取注释SampleAnnotation的值参数?
谢谢你的帮助, 埃里克