servlet开发系列之二:接口跟类详解
servlet开发系列之二:接口和类详解
实现servlet的方式:
₪1、实现Servlet接口
■Servlet类(重写service方法)+web.xml配置
₪2、继承GenericServlet
■Servlet类(重写service方法)+web.xml配置
₪3、继承HttpServlet
■Servlet类(重写doGet、doPost方法)+web.xml配置