开发servlet有三种方法:
a.实现servlet 接口(有5个方法)
b.继承GenericServlet(只需重写service()方法)
c.继承HttpServlet(只需重写doGet和doPost方法)