标签:
1.获取ServletContext 和 WebApplicationContext
WebApplicationContext webApplicationContext = ContextLoader.getCurrentWebApplicationContext();
ServletContext servletContext = webApplicationContext.getServletContext();
标签:
原文地址:http://www.cnblogs.com/kreo/p/4344722.html