拦截方法中参数类型为String
且带有@Crypto
注解的方法:execution(* *(..,@Crypto (String),..))
拦截方法中参数上带有@Crypto
注解的方法:execution(* *(..,@Crypto (*),..))
..
:零个或者多个
*
:通配符
样例
java">/*** 针对带有@Crypto注解的参数进行加密* @param joinPoint* @return* @throws Throwable*/
@Around(value = "execution(* *(..,@Crypto (String),..))")
public Object encrypt(ProceedingJoinPoint joinPoint){}