Consider I have defined the following aspect:
@Aspect public class SampleAspect { @Around(value=\"@annotation(sample.SampleAnnotation)\") public Obj
Change the advice signature to
@Around(value="@annotation(sampleAnnotation)") public Object display(ProceedingJoinPoint joinPoint, SampleAnnotation sampleAnnotation ) throws Throwable { // ... }
and you will have access to the value in the annotation.
See docs for more info.