public class Server extends HttpServlet{
public Server(){ }
public void init(ServletConfig sc) throws ServletException {
//服务在此开始
}
public void doGet(HttpServletRequest request,HttpServletResponse response)
throws IOException, ServletException{}
public void doPost(HttpServletRequest request,HttpServletResponse response)
throws IOException, ServletException{ }
}