2
LoggingAspect.java的Spring AOP: - 获取的连接点
@Around("allGenericAppServiceImplMethods()")
public Object LoggingAdvice(ProceedingJoinPoint joinPoint)throws Throwable{
MethodSignature signature = (MethodSignature)joinPoint.getSignature();
String[] parameterNames = signature.getParameterNames();
Object[] arguments = joinPoint.getArgs();
我越来越parameterNames parameterNames为null作为null.How我会得到parameterNames?
你好@ kriegaex!我目前正在使用AspectJ 1.6.11。我会升级到最新版本,并检查.... –
我刚刚将我的aspectj的maven依赖项升级到1.8.9 ....仍然我得到parameterNames为null ...这个问题是与jdk或cglib代理相关的东西吗? ... –
我已经更新了我的答案。 – kriegaex