日期:2014-05-20  浏览次数:20649 次

请问大家一个关于struts1+hibernate+spring整合配置的文件(急)
本帖最后由 yuanshuai927 于 2012-08-17 13:12:43 编辑 spring-common.xml
spring-dao.xml
spring-service.xml
spring-struts.xml
struts-config.xml
不清楚它们配置文件之间相联关系,不清楚他们如何配置文件属性是如何对应的,谁能详细的给我描述一下
如spring-dao.xml里
<bean id="newsDao" [color=#FF0000]class="com.oa.dao.NewsDaoImpl">
  <property name="sessionFactory" ref="sessionFactory"></property>
</bean>
spring-service.xml
<bean id="newsService" [color=#FF0000]class[/color]="com.oa.service.NewsServiceImpl">
       <property name="newsDao" ref="newsDao"></property>
 </bean>
spring-struts.xml
<bean name="/news" [color=#FF0000]class[/color]="com.oa.action.NewsAction" singleton="false">
            <property name="newsService" ref="newsService"/>
struts-config.xml
<action path="/news" type="org.springframework.web.struts.DelegatingActionProxy" [color=#FF0000]name[/color]="newsFilter"  parameter="method">
红色字体和如下内容是本人不解的地方
如:
spring-dao.xml下的<bean id><calss><property name><ref=>里面值如何对应spring-service.xml
spring-struts.xml struts-config.xml的<bean id><calss><property name><ref=>
是对应哪个xml,如何对应的,给我详细的说明一下。谢谢
------解决方案--------------------
谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢谢