spring boot run
2020-11-08 23:55:35 5 举报
spring boot run流程图
作者其他创作
大纲/内容
1.ApplicationRunner2.CommandLineRunner
SpringApplication.run( )
case:SERVLET:AnnotationConfigServletWebServerApplicationContextREACTIVE:AnnotationConfigReactiveWebServerApplicationContextNONE:AnnotationConfigApplicationContext
prepareContext(... )
listeners.environmentPrepared()
listeners.contextPrepared()
1.ApplicationContextInitializer2.ApplicationListener3.SpringApplicationRunListener
prepareEnvironment(...)
listeners.starting()
listeners.running()
callRunners(... )
AbstractApplicationContext.refresh();
读取spring.factories初始化实例
listeners.started()
refreshContext(... )
createApplicationContext(... )
return context
0 条评论
回复 删除
下一页