SpringBoot run 启动源码分析

Springboot 加载 从main方法开始

SpringApplication.run(Application.class, args);

 

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);
    }

 

加载环境变量

你可能感兴趣的:(springboot,springCloud)