Servlet接口定义了5个方法:
1、void init(ServletConfig config) throws ServletException
2、void service(ServletRequest req, ServletResponse resp) throws ServletException, java.io.IOException
3、void destory()
4、java.lang.String getServletInfo()
5、ServletConfig getServletConfig()