使用AspectJ的Spring MVC

使用AspectJ的Spring MVC,第1张

使用AspectJ的Spring MVC

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();    }    }


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5000302.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-14
下一篇2022-11-14

发表评论

登录后才能评论

评论列表(0条)

    保存