ServletContext application=session.getServletContext();
这个不对吧?session里的ServletContext?我的是这样的:
public class AppContextListener implements ServletContextListener { public void contextInitialized(ServletContextEvent event) {
//throw new UnsupportedOperationException("Not supported yet.");
ServletContext servletContext = event.getServletContext();
这个不对吧?session里的ServletContext?我的是这样的:
public class AppContextListener implements ServletContextListener { public void contextInitialized(ServletContextEvent event) {
//throw new UnsupportedOperationException("Not supported yet.");
ServletContext servletContext = event.getServletContext();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货