【问题标题】:Spring AOP with mule带骡子的 Spring AOP
【发布时间】:2014-01-06 05:19:35
【问题描述】:

我正在使用 Spring AOP 通过 JAMon api 进行性能统计。

    public class ServicePerformanceInterceptor extends JamonPerformanceMonitorInterceptor {
        @Override
        protected Object invokeUnderTrace(MethodInvocation invocation, Log logger) throws Throwable {
.
.
.

    }

和bean配置

<bean id="timingAdvice" class="com.example.logging.interceptor.ServicePerformanceInterceptor"/>

<aop:config>
    <aop:advisor pointcut="execution(* com.example.resource.Resource.*(..))" advice-ref="timingAdvice"/>
</aop:config>

但是在流拦截器中没有被调用。你能告诉我我错过了什么吗?

【问题讨论】:

  • 你的完整配置是什么?

标签: logging mule interceptor spring-aop jamon


【解决方案1】:

想通了,我需要将 log4j 属性设置为跟踪级别。否则它将无法调用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-17
    • 2018-07-24
    • 2011-12-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多