ServletContext取得:在Spring中,凡是实现ServletContextAware接口的类,都可以取得ServletContext
private
ServletContext application;
public
void
setServletContext(ServletContext servletContext) {
this
.application = servletContext;
}
时间: 2025-01-10 02:55:28