2013年5月10日
摘要: 引自http://jamesby.iteye.com/blog/39899一、AOP 概念Joinpoint:它定义在哪里加入你的逻辑功能,对于Spring AOP,Jointpoint指的就是Method。Advice:特定的Jointpoint处运行的代码,对于Spring AOP 来讲,有Before advice、AfterreturningAdvice、ThrowAdvice、AroundAdvice(MethodInteceptor)等。Pointcut:一组Joinpoint,就是说一个Advice可能在多个地方织入,Aspect:这个我一直迷惑,它实际是Advice和Point 阅读全文
posted @ 2013-05-10 11:16 Dream_c 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 前几天把系统重构了,服务层针对前后台分别提供相应的接口,但在配置注入的时候出现如下错误:java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0] to required type [com.test.dao.UserDAO] for property 'dao': no matching editors or conversion strategy foundSpring配置如下:<!-- 事务通知 --> <tx:advice id="txAdvice&qu 阅读全文
posted @ 2013-05-10 10:55 Dream_c 阅读(925) 评论(0) 推荐(0) 编辑