javaWeb服务详解(含源代码,测试通过,注释) ——applicationContext-dao.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans
	xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:p="http://www.springframework.org/schema/p"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
	" default-autowire="byName">
		
	<!-- 配置DAO -->
	<bean id="deptDao" class="org.dao.impl.DeptDaoImpl">
		<property name="sessionFactory" ref="sessionFactory"></property>
	</bean>
	<bean id="empDao" class="org.dao.impl.EmpDaoImpl">
		<property name="sessionFactory" ref="sessionFactory"></property>
	</bean>
	
	</beans>

posted @ 2017-06-02 17:03  穆雄雄  阅读(365)  评论(0)    收藏  举报