与spring和springboot相关的重要逻辑,如果想了解源头在哪,找refresh准没错
启动类,run
@SpringBootApplication
public class KafkaBootApplication {
public static void main(String[] args) {
SpringApplication.run(KafkaBootApplication.class, args);
}
}
一路run
public static ConfigurableApplicationContext run(Class<?> primarySource, String... args) {
return run(new Class<?>[] { primarySource }, args);
}
public static ConfigurableApplicationContext run(Class<?>[] primarySources, String[] args) {
return new SpringApplication(primarySources).run(args);
}
直到refreshContext(context)
private void refreshContext(ConfigurableApplica