【发布时间】:2016-02-09 18:48:07
【问题描述】:
我无法使用 spring aop 性能日志记录私有方法。 下面是我在下面配置中使用的配置
<aop:config proxy-target-class="true">
<aop:pointcut id="allServiceMethods" expression="execution(* com.mycom.app.abc..*.*(..))"/>
<aop:advisor pointcut-ref="allServiceMethods" advice-ref="performanceMonitor" order="2"/>
</aop:config>
我的课程路径上有cglib jar。
【问题讨论】:
-
我有一些嵌套的私有方法调用,也想记录它们
-
恐怕嵌套调用是一个类似的问题。该方面仅在从外部调用该方法时才有效,我猜是因为在 bean 内部调用时不使用 AOP 代理。
标签: spring aop aspectj spring-aop aopalliance