Servlet的基本架构

Servlet的基本架构:


package test;



import java.io.IOException;



import javax.servlet.ServletException;

import javax.servlet.http.HttpServlet;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;



public class ServletName extends HttpServlet {

    public void doPost(HttpServletRequest request, HttpServletResponse response)

            throws ServletException, IOException {

    }



    public void doGet(HttpServletRequest request, HttpServletResponse response)

            throws ServletException, IOException {

        }

}
posted @ 2018-10-05 00:34  尐鱼儿  阅读(966)  评论(0编辑  收藏  举报