jjzjj

SampleAnnotation

全部标签

Spring AOP : Getting parameters of the pointcut annotation

考虑我已经定义了以下方面:@AspectpublicclassSampleAspect{@Around(value="@annotation(sample.SampleAnnotation)")publicObjectdisplay(ProceedingJoinPointjoinPoint)throwsThrowable{//...}}和注释public@interfaceSampleAnnotation{Stringvalue()default"defaultValue";}如果我的aspect有没有办法读取显示方法中注解SampleAnnotation的value参数?感谢您的帮助

Spring AOP : Getting parameters of the pointcut annotation

考虑我已经定义了以下方面:@AspectpublicclassSampleAspect{@Around(value="@annotation(sample.SampleAnnotation)")publicObjectdisplay(ProceedingJoinPointjoinPoint)throwsThrowable{//...}}和注释public@interfaceSampleAnnotation{Stringvalue()default"defaultValue";}如果我的aspect有没有办法读取显示方法中注解SampleAnnotation的value参数?感谢您的帮助