JavaWeb--HttpServlet
1.是一个Servlet,继承自GenericServlet,针对HTTP定制
2.在service()方法中直接把ServletRequset和ServletResponse转为HttpServletRequest和HttpServletResponse,并调用了重载的service(HttpServletRequest,HttpServletResponse)
service(HttpServletRequest,HttpServletResponse)获取请求方式:request.getMethod();根据请求方式又创建了doXxx()方法(Xxx为具体的请求方式doGet, doPost)