servlet开发系列之二:接口和类详解

实现servlet的方式:
₪1、实现Servlet接口
■Servlet类(重写service方法)+web.xml配置
₪2、继承GenericServlet
■Servlet类(重写service方法)+web.xml配置
₪3、继承HttpServlet
■Servlet类(重写doGet、doPost方法)+web.xml配置

猜你喜欢

转载自qingqingzijin.iteye.com/blog/1036192