Spring 配置Beans

<bean id="UserDao" class="com.jikexueyuan.dao.impl.UserDaoImpl">
        <property name="sessionFactory" ref="sessionFactory"></property>
    </bean>
    <bean id="UserServices" class="com.jikexueyuan.services.UserServices">
        <property name="userDao" ref="UserDao"></property>
    </bean>
    <bean id="UserAction" class="com.jikexueyuan.action.UserAction">
        <property name="userSerivces" ref="UserServices"></property>
    </bean>

 

posted @ 2017-03-23 15:49  我们不该这样的  阅读(153)  评论(0编辑  收藏  举报