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