ITeye博客

Druid提供了Spring和Jdbc的关联监控

lishoubin_123 · 2014-10-13 08:40 · Web前端 · Markdown

Druid提供了Spring和Jdbc的关联监控。 配置spring com.alibaba.druid.support.spring.stat.DruidStatInterceptor是一个标准的Spring MethodInterceptor。可以灵活进行AOP配置。 Spring AOP的配置文档: http://static.springsource.org/spring/docs/current/spring-framework-reference/html/aop-api.html 按类型拦截配置 druid-stat-interceptor 方法名正则匹配拦截配置 com.mycompany.service.* com.mycompany.dao.* 有些情况下,可能你需要配置proxy-target-class,例如: 按照BeanId来拦截配置 xxx-dao xxx-service druid-stat-interceptor

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。