摘要:
摘要: web.xml里只配置了一个Servlet(DispatcherServlet),初始化了2个MVC上下文,这是不正确的 (1) 配置文件web.xml其中的片段: (2) 使用如下代码,获取ServletContext: (3)上面代码的执行Log: WAC getServletConte 阅读全文
摘要:
WebApplicationContext wac = ContextLoader.getCurrentWebApplicationContext(); out.println( "\n[LOCATOR_FACTORY_SELECTOR_PARAM]\t" + ContextLoader.LOCATOR_FACTORY_SELECTOR_PARAM... 阅读全文