ServletContext取得:在Spring中,凡是实现ServletContextAware接口的类,都可以取得ServletContext
private
ServletContext application;
public
void
setServletContext(ServletContext servletContext) {
this
.application = servletContext;
}
本文出自 “炼心之旅” 博客,请务必保留此出处http://xinzhilian.blog.51cto.com/2821850/1737036
原文地址:http://xinzhilian.blog.51cto.com/2821850/1737036