SSH的配置问题

来源:百度知道 编辑:UC知道 时间:2024/06/28 01:37:15
struts1.x 和struts2 在spring里面的配置是一样吗

肯定不一样啦,我把我的代码粘给你看吧
struts1在spring里的配置:
<bean name="/user" class="com.cpxt.struts.action.UserAction">
<property name="yhbmbDao" ref="yhbmbDao"></property>
<property name="jsbmbDao" ref="jsbmbDao"></property>
<property name="jsrkqkbDao" ref="jsrkqkbDao"></property>
<property name="cpscoreDao" ref="cpscoreDao"></property>
<property name="xsbmbDao" ref="xsbmbDao"></property>
<property name="md5" ref="md5"></property>

</bean>
struts2在spring里的配置
<bean id="showGoodsAction" class="com.yancheng.struts2.action.ShowGoodsAction" scope="prototype">
<property name="goodsService" ref="goodsService"></property>
<pro