
Your around advice does not return the result of pjp.proceed(). That is the
return value of the advised method and must be returned by the advice!
Otherwise you are turning the advised method into a void as well.
public **Object** log(final ProceedingJoinPoint pjp) {... try { **return** pjp.proceed(); <<< ! } catch (Throwable e) { e.printStackTrace(); } }欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)