2020
10-13
10-13
SpringBoot 创建容器的实现
spring容器的创建对应SpringApplication中run中调用的createApplicationContext方法。这里创建了一个web容器,接下就进去prepareContext容器准备阶段:privatevoidprepareContext(ConfigurableApplicationContextcontext,ConfigurableEnvironmentenvironment,SpringApplicationRunListenerslisteners,ApplicationArgumentsapplicationArguments,BannerprintedBanner){//为容器设置环境conte...
继续阅读 >