摘要: 由于直接拦截所有的controller所以需要spring.xml中添加<aop:aspectj-autoproxy proxy-target-class="true" /> 交由cglib代理。使用只要在controller的method上加上@ActionControllerLog(channe 阅读全文
posted @ 2017-07-13 13:43 爱哭的胖胖 阅读(644) 评论(0) 推荐(0)
摘要: 使用AOP记录操作日志信息 添加一个统一处理日志AOP 在spring的xml文件中声明 写Dao、Entity、Mapper 根据Controller的方法名称定制响应的事件类型 阅读全文
posted @ 2017-07-13 13:35 爱哭的胖胖 阅读(440) 评论(0) 推荐(0)