日期:2014-05-20 浏览次数:20755 次
<bean id="LoginCodedbDAO" class="com.zjm.ssh2.login.dao.hibernate.CodedbDAO"> <property name="sessionFactory"> <ref bean="sessionFactory" /> </property> </bean> <bean id="LoginCodeService" class="com.zjm.ssh2.login.services.CodeService"> <property name="CodedbDao"> <!--[color=#FF0000]这行报错[/color]--> <ref bean="LoginCodedbDAO" /> </property> </bean>
package com.zjm.ssh2.login.services; import com.zjm.ssh2.login.dao.iface.ICodedbDAO; import com.zjm.ssh2.login.services.iface.ICodeService; public class CodeService implements ICodeService { public ICodedbDAO CodedbDao; public ICodedbDAO getCodedbDao() { return CodedbDao; } public void setCodedbDao(ICodedbDAO codedbDao) { CodedbDao = codedbDao; } }
import com.zjm.ssh2.login.dao.iface.ICodedbDAO; public class CodedbDAO extends HibernateDaoSupport implements ICodedbDAO { ...... }