1. 程式人生 > >Spring裝配基本屬性的原理分析與程式碼實現

Spring裝配基本屬性的原理分析與程式碼實現

<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.springframework.org/schema/beans

http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">

<bean id="peopleDao" class="com.wxy.dao.impl.PeopleDaoBean"></bean>

<bean id="peopleService" class="com.wxy.service.impl.PeopleServiceBean">

<property name="peopleDao" ref=” peopleDao”/>

</bean>

</beans>