zl程序教程

您现在的位置是:首页 >  其他

当前栏目

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

服务XML 详解 源代码 注释 javaweb DAO ApplicationContext
2023-09-14 08:57:40 时间
<?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>