我想時間的在包「com.company.somemodule」代碼的性能(具有類R1,R2,...),以及代碼在子包,多個執行語句,但只有一個是工作
- com.company.somemodule.subPackageA(已類A1,A2,...)
- com.company.somemodule.subPackageB
我寫了類似如下的切入點。我可以查看類A1,A2的運行時間,但我無法查看類R1,R2,運行時間等
<bean id="timingAdvice"
class="org.springframework.aop.interceptor.PerformanceMonitorInterceptor" />
<aop:config>
<aop:advisor
pointcut="execution(* com.company.somemodule..*.*(..)) OR
execution(* com.company.somemodule.*.*(..))"
advice-ref="timingAdvice" />
</aop:config>
請任何人都可以幫助嗎?提前致謝。
P.S:我已經嘗試下面貼here的建議。