首页 试题广场 > 试题详情
单选题

【C015089】Spring-与Struts 2集成如何设置整个spring配置文件的<bean>为默认自动装配()。

  • A.<beans default-autowire="byName">  

    <bean name="loginAction" class="com.wen.action.LoginAction"></bean>
    <bean id="userService" class="com.wen.service.impl.UserServiceImpl"></bean>

    </beans>
  • B.<beans >  

    <bean name="loginAction" class="com.wen.action.LoginAction" default-autowire="byName"></bean>
    <bean id="userService" class="com.wen.service.impl.UserServiceImpl">
    </bean>

    </beans>
  • C.<beans >  

    <bean name="loginAction" class="com.wen.action.LoginAction"></bean>
    <bean id="userService" class="com.wen.service.impl.UserServiceImpl"
    default-autowire="byName"></bean>

    </beans>
  • D.<beans >  

    <bean name="loginAction" class="com.wen.action.LoginAction"
    default-autowire="byName"></bean>
    <bean id="userService" class="com.wen.service.impl.UserServiceImpl"
    default-autowire="byName"></bean>

    </beans>
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 0个回答
    Ke星小伙伴儿们都不晓得答案吖~
    快来帮帮他们吧~
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部