首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Spring AOP与mule

Spring AOP与mule
EN

Stack Overflow用户
提问于 2014-01-06 13:19:36
回答 1查看 254关注 0票数 0

我通过JAMon apis使用Spring AOP进行性能统计。

代码语言:javascript
复制
    public class ServicePerformanceInterceptor extends JamonPerformanceMonitorInterceptor {
        @Override
        protected Object invokeUnderTrace(MethodInvocation invocation, Log logger) throws Throwable {
.
.
.

    }

和bean配置

代码语言:javascript
复制
<bean id="timingAdvice" class="com.example.logging.interceptor.ServicePerformanceInterceptor"/>

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

但是流中的拦截器不会被调用。你能告诉我我错过了什么吗?

EN

回答 1

Stack Overflow用户

发布于 2014-01-15 18:27:58

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/20943463

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档