码迷,mamicode.com
首页 > 其他好文 > 详细

Servlet的基本架构

时间:2018-10-05 10:41:05      阅读:154      评论:0      收藏:0      [点我收藏+]

标签:title   class   void   throw   key   word   extend   throws   lan   

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 {

        }

}

Servlet的基本架构

标签:title   class   void   throw   key   word   extend   throws   lan   

原文地址:https://www.cnblogs.com/yuyu666/p/9743966.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!