Spring中,BeanFactory由org.springframework.beans.factory.BeanFactory接口定义,是工厂模式实现,其作用包括()
A.负责创建和管理Bean
B.负责在实例化Bean之前创建Bean之间的联系
C.创建及分发Bean
D.参与到Bean生命周期中,调用对象的初始化函数及析构函数
A.负责创建和管理Bean
B.负责在实例化Bean之前创建Bean之间的联系
C.创建及分发Bean
D.参与到Bean生命周期中,调用对象的初始化函数及析构函数
第1题
A.用于定义Bean是否为Singleton
B.默认是false
C.默认是true
D.在BeanFactory作用范围内,仅维护此Bean的一个实例
第4题
A.与分布式系统相关的复杂性–包括网络问题,延迟开销,带宽问题,安全问题
B.处理服务发现的能力–服务发现允许集群中的进程和服务找到彼此并进行通信
C.解决冗余问题–冗余问题经常发生在分布式系统中
D.负载平衡–改进跨多个计算资源(例如计算机集群,网络链接,中央处理单元)的工作负载分布
第5题
A.Spring注解@Autowired(required=true)表示一定要找到匹配的Bean,否则抛异常,默认值是false
B.@Qualifier("bean的名字")按名称装配Bean,与@Autowired组合使用,解决按类型匹配找到多个Bean问题
C.@Resource默认情况下是按照名称进行匹配,如果没有找到相同名称的Bean,则会按照类型进行匹配
D.@Transactional声明式事务
第6题
Receptionist:Hello,Spring Hotel.May I help you?Customer:__________?
A.
第7题
The heavy snow in early spring may__________the growth of the wheat.
A.hold on
B.hold up
C.hold out
D.hold in
第8题
Student B: Great!______. What time and where?
第10题
Hangzhou, ______ we spent last spring, is one of the most beautiful cities in China.
A.where
B.which
C.that
D.when
第11题
The secretary suggested that we ______ an outing during the spring holidays.
A.had better organize
B.organized
C.would organize
D.organize