Srping监听Controller,Service,Dao 方法执行时间场景 http://my.oschina.net/guoenzhou/blog/738410

可能碰到依赖循环问题: http://www.mekau.com/index.php/tec/server/spring/pandy_3667.html

1.applicationContext.xml配置

beanNames根据注入实例名称来过滤拦截

interceptorNames 配置了具体拦截器实例Bean id

2.监听执行时间拦截器

拦截器类实现MethodInterceptor

threshold为超时阀值,超过这个阀值日志打印出来