java Spring框架配置里的bean<property>属性ref可以写一个类吗 20
<beanid="LibOpacSearchAction"class="com.duxiu.action.opac.lib.LibOpacSearchAction"sin...
<bean id="LibOpacSearchAction" class="com.duxiu.action.opac.lib.LibOpacSearchAction"
singleton="false">
<property name="opacNewsService" ref="OpacNewsService"></property>
</bean>
OpacNewsService是service包里业务类。为什么OpacNewsService不用bean注入 展开
singleton="false">
<property name="opacNewsService" ref="OpacNewsService"></property>
</bean>
OpacNewsService是service包里业务类。为什么OpacNewsService不用bean注入 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询