Spring execution 表达式 @Pointcut
@Pointcut(“execution(* com.ali.service..*Serviceimpl.export*(..))”)
..代表多个包,*Serviceimpl 代表任意service实现类,export* 代表export命名开头的方法,
@Pointcut("execution(* com.ali.service..*Serviceimpl.export*(..))")
public void excel(){}
@Around("excel()")
public Object doAround(ProceedingJoinPoint pjp)throws Throwable {
//写处理方法
}
https://www.cnblogs.com/satire/p/14874827.html
Spring execution 表达式 - 知乎 (zhihu.com)
还没有评论,来说两句吧...