0
我在春天的定義如下AOP配置:AOP的建議沒有得到調用
<aop:config>
<aop:aspect ref="aopAdvice">
<aop:around
pointcut="execution(* com.bis.client.auto.ClientHandler.sendCanonical(..))"
method="methodDuration"/>
</aop:aspect>
<aop:aspect ref="aopAdvice">
<aop:around
pointcut="execution(public * com.bis.client.auto.MessageHandlerImpl.messageArrived(..))"
method="methodDuration"/>
</aop:aspect>
</aop:config>
我基本上希望在sendCanonical方法或消息方法被調用,以被稱爲methodDuration方法。
問題是建議永遠不會被調用,即使我100%確定這些方法被調用。
任何想法?