Spring常用工具类

1.获取ServletContext 和 WebApplicationContext 

WebApplicationContext webApplicationContext = ContextLoader.getCurrentWebApplicationContext();    
ServletContext servletContext = webApplicationContext.getServletContext();  

 

posted on 2015-03-17 16:21  太清  阅读(690)  评论(0编辑  收藏  举报