更新时间:2023-11-24 12:43:22
@Component
@Aspect
public class Mail {
@After("execution (@com.yourdirectoryofyourcustomAnnotation.SendMail * *(..))")
public void sendEmail(JointPoint jp){
// it will send a mail after every method which tagged by your annotation
}
}