经典指数          
原因
2353
浏览数
0
收藏数
 

How should servlet developers handle the HttpServlet’s service() methond when extending HttpServlet?
  • They should override the service()method in most cases;
  • They should call the service()method from doGet()or doPost();
  • They should call the service()method from the init()method;
  • They should override at least one doXXX()method(such as doPost())

     举报   纠错  
 
切换
1 个答案

印象里记得是要重写dopost 或者doget方法的

 
切换
撰写答案