SpringBoot复习:(15)Spring容器的核心方法refresh是在哪里被调用的?
在SpringApplication的run方法:
refreshContext代码如下:
其中调用的refresh方法代码如下:
其中调用的refresh方法代码如下:
其中调用的fresh方法代码如下:
其中调用了super.refresh();而这个super.refresh()就是AbstractApplicationContext的refresh方法:
在SpringApplication的run方法:
refreshContext代码如下:
其中调用的refresh方法代码如下:
其中调用的refresh方法代码如下:
其中调用的fresh方法代码如下:
其中调用了super.refresh();而这个super.refresh()就是AbstractApplicationContext的refresh方法: