java 监听器

来源:互联网 发布:vb6.0连接ms SQL 编辑:程序博客网 时间:2024/05/16 15:29

1、首先配置web.xml文件

      <listener>   
          <listener-class>cn.com.spcs.ots.common.util.OverTimeSystemListener</listener-class>
      </listener>

2、实现ServletContextListener接口

    contextInitialized(final ServletContextEvent arg0)

    contextDestroyed(ServletContextEvent arg0)

 

原创粉丝点击