摘要: 摘要: web.xml里只配置了一个Servlet(DispatcherServlet),初始化了2个MVC上下文,这是不正确的 (1) 配置文件web.xml其中的片段: (2) 使用如下代码,获取ServletContext: (3)上面代码的执行Log: WAC getServletConte 阅读全文
posted @ 2017-06-12 19:18 FranklinYang 阅读(945) 评论(0) 推荐(0) 编辑
摘要: WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext(); out.println( "\n[LOCATOR_FACTORY_SELECTOR_PARAM]\t" + ContextLoader.LOCATOR_FACTORY_SELECTOR_PARAM... 阅读全文
posted @ 2017-06-12 14:30 FranklinYang 阅读(1605) 评论(0) 推荐(0) 编辑