Spring AOP @Around access the value of @annotation
问题 I have a custom annotation as, @Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface XAudit { AuditActionType action(); } I am using this annotation on some method as following, @XAudit(action = "REGISTRATION") public RegistrationDTO register(UserDetail detail) { //Logic return dto; } I am capturing event in aspect as following, @Around(value = "@annotation(XAudit)") public Object postAuditEvent(ProceedingJoinPoint joinPoint, XAudit xAudit) throws Throwable {