【发布时间】:2017-08-17 13:55:02
【问题描述】:
Spring AOP中是否可以根据参数名获取方法参数值。
MethodSignature signature = (MethodSignature) proceedingJoinPoint.getSignature();
Method method = signature.getMethod();
method.getParameters().getName()
// possible to get the paramater names
这种方法将获取参数名称,而不是值。
proceedingJoinPoint.getArgs()
将返回值而不是名称
那么是否可以根据参数名取值呢?
【问题讨论】:
标签: spring spring-aop