单项选择题
关于@Scope错误的是()
A.Scope("singleton")
B.Scope("prototype")
C.Scope("response")
D.Scope("session")
点击查看答案&解析
相关考题
-
单项选择题
@PostConstruct注解的方法在整个Bean初始化中的执行顺序是()
A.Constructor(构造方法)->@Autowired(依赖注入)->@PostConstruct(注释的方法)
B.Constructor(构造方法)->@PostConstruct(注释的方法)->@Autowired(依赖注入)
C.@PostConstruct(注释的方法)->Constructor(构造方法)->@Autowired(依赖注入)
D.@Autowired(依赖注入)->Constructor(构造方法)->@PostConstruct(注释的方法) -
单项选择题
Spring中自动装备注解是()
A.@Component
B.@Autowired
C.@Value
D.@AutoInit -
单项选择题
Spring中单例模式Bean的关键字是()
A.prototype
B.request
C.singleton
D.Session
