10
考虑我已经定义了以下方面的参数:Spring AOP的:获取切入点注解
@Aspect
public class SampleAspect {
@Around(value="@annotation(sample.SampleAnnotation)")
public Object display(ProceedingJoinPoint joinPoint) throws Throwable {
// ...
}
}
和注释
public @interface SampleAnnotation {
String value() default "defaultValue";
}
有没有办法读取注释SampleAnnotation参数的值在显示方法,如果我的方面?
感谢您的帮助, 埃里克
[访问注解值的建议](http://stackoverflow.com/questions/5026247/accessing-annotation-value-in-advice) – axtavt 2011-03-12 11:45:37