求详细解释每一个重点,每一个细节,谢谢啦,大神们
<?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="tongzhiDao" class="com.sysgrrj.module.TongZhi.dao.TongzhiDao">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<bean name="tongzhiBean" class="com.sysgrrj.module.TongZhi.action.TongzhiAction" scope="prototype">
<property name="dao">
<ref bean="tongzhiDao"/>
</property>
<property name="service">
<ref bean="coreService"/>
</property>
</bean>
spring做依赖注入配置,定义bean以及往bean里注入需要依赖的其他bean.例如,第一个定义了bean tongzhiDao,对应TongzhiDao类,bean中有SessionFactory属性,在这里注入了
楼主是想要问什么呢,解说一下配置文件各个项