demand:Decryption of database query results with AOP MybatisPlus Return results,for example:List
I customize an annotation to intercept annotated methods, But I intercepted the method and got that the return type is List,How can I get the VO type in the list
@Component
@Aspect
@Order
public class DecryptrResultAspect {
@Pointcut("@annotation(com.sgcc.hr.recruit.graduate.common.utils.NeedDncryptResult)")
public void rsaDecodeSecurityParameterAspect() {
}
@After("rsaDecodeSecurityParameterAspect()")
public void decode(JoinPoint joinPoint) {
try {
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
Class returnType = signature.getReturnType();
System.out.println(returnType);
// output interface java.util.List
} catch (Exception e) {
e.printStackTrace();
}
}
}