voxservlet.java

来自「采用JAVA开发」· Java 代码 · 共 36 行

JAVA
36
字号
package com.gctech.sms.voice.web;import javax.servlet.*;import javax.servlet.http.*;import java.io.*;import java.util.*;import com.gctech.sms.voice.common.*;import com.gctech.sms.voice.api.*;public class VoxServlet extends HttpServlet implements ServletContextListener{//Notification that the web module is ready to process requests  public void contextInitialized(ServletContextEvent sce)  {    try    {      SMSMain.instance().start();    }    catch(Exception ex)    {      ex.printStackTrace();    }  }  //Notification that the servlet context is about to be shut down  public void contextDestroyed(ServletContextEvent sce)  {    Cache.instance().stopLoad();     SMSMain.instance().colse();  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?