完了只需要userdao中引入sessionFactory对象
<bean id="userdao" class="cn.itcast.shop.user.dao.UserDao">
<!--提供session莫版 -->
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
完了只需要userdao中引入sessionFactory对象
<bean id="userdao" class="cn.itcast.shop.user.dao.UserDao">
<!--提供session莫版 -->
<property name="sessionFactory" ref="sessionFactory"/>
</bean>