这是applicationConext.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"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="dao" class="org.gestion.bp.dao.BanqueDaoImp"></bean>
<bean id="metier" class="org.gestion.bp.metier.BanqueMetierImp"></bean>
<property name="dao" ref="dao"></property>
</beans>
答案 0 :(得分:0)
下面:
<bean id="metier" class="org.gestion.bp.metier.BanqueMetierImp"></bean>
<property name="dao" ref="dao"></property>
</beans>
您已在属性之前使用</bean>
关闭'bean'。它应该是:
<bean id="metier" class="org.gestion.bp.metier.BanqueMetierImp">
<property name="dao" ref="dao"></property>
</bean>
</beans>