单项选择题
@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 -
单项选择题
关于@Component正确的是()
A.@Component public class Tiger
B.@Component private Tiger tiger
C.@Component("Tiger")private Tiger tiger
D.@Component="Tiger"private Tiger tiger
