首页 > 解决方案 > Spring AnnotationConfigApplicationContext StartupStep spring.context.annotated-bean-reader.create

问题描述

在 AnnotationConfigApplicationContext 第 67 行

public AnnotationConfigApplicationContext() {
    StartupStep createAnnotatedBeanDefReader = this.getApplicationStartup().start("spring.context.annotated-bean-reader.create");
    this.reader = new AnnotatedBeanDefinitionReader(this);
    createAnnotatedBeanDefReader.end();
    this.scanner = new ClassPathBeanDefinitionScanner(this);
}

StartupStepDefaultApplicationStartup

在此处输入图像描述

start("spring.context.annotated-bean-reader.create")这个名字没用。

那么为什么要在这个方法中传递呢?

标签: javaspring

解决方案


推荐阅读