当前位置: 代码迷 >> J2EE >> spring cglib使用解决思路
  详细解决方案

spring cglib使用解决思路

热度:132   发布时间:2016-04-19 22:02:54.0
spring cglib使用
我是一个初学者,最近练习spring,在applicationContext.xml里面定义了bean,
                <bean id="filesDoctor_Dao"  class="com.hpsystem.dao.impl.FilesDoctorDaoImpl"/>       
<bean  id="filesDoctorBusiness"  class="com.hpsystem.business.impl.FilesDoctorBusinessImpl" >
      <property name="filesDoctorDao" ><ref bean="filesDoctor_Dao"/></property> 
</bean>
然后从后台取,我想请教大家,这种方式使用了cglib了吗(面向类的),如果是的话,我并没有使用相关的cglib包,求解释!!
谢谢大家!!
------解决方案--------------------
一个是jdk  还有个是cglib  一个 是接口一个是类。

代理模式。
------解决方案--------------------
aop涉及到,看cglib 首先要清楚代理模式,访问者模式及责任链模式
  相关解决方案