1个回答
展开全部
<!-- exportMakeCardFileAction里边有个属性TCardSeriesManager,以前的做法是TCardSeriesManager t = new TCardSeriesManager();而掘脊仔用spring,直接用ref属性把这个类注入进来 ,起到了截耦的作用-->
<bean id="exportMakeCardFileAction" class="cn.sccl.card.publish.web.ExportMakeCardFileAction" scope="判汪prototype">
<description>导出制卡文件</description>
<property name="TCardSeriesManager" ref="tCardSeriesManagerImpl" />
</bean>
<bean id="tCardSeriesManager"
class="cn.sccl.card.publish.service.impl.TCardSeriesManagerImpl">
<property name="tCardSeriesDAO" ref="tCardSeriesDAO" />
<bean id="tCardSeriesDAO" class="cn.sccl.card.publish.dao.impl.TCardSeriesDAOImpl" parent="baseDAO"></野派bean>
<bean id="exportMakeCardFileAction" class="cn.sccl.card.publish.web.ExportMakeCardFileAction" scope="判汪prototype">
<description>导出制卡文件</description>
<property name="TCardSeriesManager" ref="tCardSeriesManagerImpl" />
</bean>
<bean id="tCardSeriesManager"
class="cn.sccl.card.publish.service.impl.TCardSeriesManagerImpl">
<property name="tCardSeriesDAO" ref="tCardSeriesDAO" />
<bean id="tCardSeriesDAO" class="cn.sccl.card.publish.dao.impl.TCardSeriesDAOImpl" parent="baseDAO"></野派bean>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询