日期:2014-05-17 浏览次数:20776 次
<bean id="userDao" class="com.accp.house.dao.impl.UserDaoImpl"> <property name="sessionFactory" ref="sessionFactory"></property> </bean> <bean id="userService" class="com.accp.house.service.impl.UserServiceImpl"> <property name="userDao" ref="userDao"></property> </bean> <bean name="/logine" class="com.accp.house.web.struts.action.LogineAction"> <property name="userService" ref="userService"></property> </bean>
------解决方案--------------------
我把代码贴详细些,
<bean id="userDao" class="com.accp.house.dao.impl.UserDaoImpl"> <property name="sessionFactory" ref="ocument.getEle
------解决方案--------------------
<bean id="basicDao" class="org.springframework.orm.hibernate3.support.HibernateDaoSupport" abstract="true"> <property name="sessionFactory"> <ref bean="sessionFactory" /> </property> </bean>
------解决方案--------------------
package com.ts.spring; import java.io.Serializable; public class MySpring <T extends Serializable,PK extends Serializable> { public void test(){ System.out.println("我拿到测试数据了"); } }