Spring启动

写完我自己都看得头大了
能看就看,看不了算了,就空再拆解一下

1.SpringBoot项目的启动类

public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}

2.run方法

//可配置的应用程序上下文,传入 启动类的class 和 启动参数
public static ConfigurableApplicationContext run(Class primarySource, String... args) {
return run(new Class[]{primarySource}, args);
}
//new Spring上下文,传入我们的class
public static ConfigurableApplicationC

Spring启动最先出现在Python成神之路

版权声明:
作者:感冒的梵高
链接:https://www.techfm.club/p/25287.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>