三大框架面试题及答案.docx

三大框架面试题及答案

一、选择题(共10题,每题2分,共20分)

1.在SpringIOC容器中,默认的Bean作用域是()。

A.Singleton

B.Prototype

C.Request

D.Session

答案:A

2.关于SpringBean的生命周期,以下说法正确的是()。

A.Bean实例化后,属性赋值之前会执行InitializingBean的afterPropertiesSet方法

B.Bean销毁时一定会执行DisposableBean的destroy方法

C.BeanPostProcessor的p

文档评论(0)

1亿VIP精品文档

相关文档