监听器

1,

 

2,

public class MyListener implements ServletContextListener {

public void contextDestroyed(ServletContextEvent arg0) {
System.out.println("---销毁----");
}

public void contextInitialized(ServletContextEvent arg0) {
System.out.println("----初始化------");
}

}

posted on 2015-11-04 22:36  kebizhanmushi  阅读(112)  评论(0编辑  收藏  举报

导航