单项选择题
BeanFactory和AppliactionContext创建Spring容器的区别主要体现在()
A.Bean创建数目的不同
B.Bean创建时间的不同
C.Bean创建种类的不同
D.Bean创建方向的不同
点击查看答案&解析
相关考题
-
单项选择题
表达式spel方式注入属性时,在applicationContext.xml配置文件中,注册User和Car类到容器,不包括以下哪个步骤()
A.在com.mhys.bean注册User类到容器
B.在applicationContext.xml配置文件中,注册User类到容器
C.在com.mhys.bean包下,创建Car类,首先,添加brand和carNo两个属性
D.在控制台中,查看输出结果 -
单项选择题
p命名空间注入属性之前需要引入以下()对应约束。
A.xmlns:a="http://www.springframework.org/schema/a"
B.xmlns:p="//www.springframework.org/schema/p"
C.xmlns:p="http://www.springframework.org/schema/p"
D.xmlns:p="http://www.springframework.org" -
多项选择题
set注入时,在applicationContext.xml文件中使用bean元素注入对象,包括以下哪些步骤()
A.在Student类中注入name属性的属性值
B.在测试类中调用getName()方法
C.在测试类中调用setName()方法
D.在控制台中,查看输出结果
