servlet

来源:互联网 发布:mac os x 10.11破解版 编辑:程序博客网 时间:2024/05/01 18:54
Servlet接口中为什么没有定义doGet和doPost方法,是因为Servlet是一个通用的接口,不面向于http协议,它的子类GenericServlet也是通用的接口,同样不提供这两方法,而http协议继承于GenericServlet,除了继承他的两个方法,还实现了特定于http协议的doGet和doPost
0 0