1、菜单:new -> Servle 程序
2、配置 Servlet 信息
1、菜单:new -> Servlet 程序
可以发现,使用工具创建的 Servlet 是实现 HttpServlet这个类的,然后里面有构造器、doGet() 和 doPost() 方法。