2019年11月1日
摘要: 继承了ServletContextAware接口类。那则可直接获取ServletContext。 获取流程 1、Spring通过XmlWebApplication加载bean。 2、他会调用父类AbstractRefreshableWebApplicationContext,的postprocess 阅读全文
posted @ 2019-11-01 14:30 兜兜圈圈 阅读(1430) 评论(0) 推荐(0) 编辑
摘要: spring源码解读时,在createWebApplicationContext时,需要对获取的contextClassName进行ClassUtils.forName(String name, ClassLoader classLoander)进行了分析 ClassUtils.forName 是时 阅读全文
posted @ 2019-11-01 14:10 兜兜圈圈 阅读(1130) 评论(0) 推荐(0) 编辑