摘要:
继承了ServletContextAware接口类。那则可直接获取ServletContext。 获取流程 1、Spring通过XmlWebApplication加载bean。 2、他会调用父类AbstractRefreshableWebApplicationContext,的postprocess 阅读全文
摘要:
spring源码解读时,在createWebApplicationContext时,需要对获取的contextClassName进行ClassUtils.forName(String name, ClassLoader classLoander)进行了分析 ClassUtils.forName 是时 阅读全文