Servlet的基本架构
Posted yuyu666
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 {
}
}
以上是关于Servlet的基本架构的主要内容,如果未能解决你的问题,请参考以下文章