Should I override service() or doPost()?

后端 未结 5 2044
余生分开走
余生分开走 2021-01-04 08:53

I was reading a book on servlets, in that book a brief explanation is given about the servlet class, as well as the HttpServlet class.

There is one exam

5条回答
  •  一整个雨季
    2021-01-04 09:28

    You most probably override the doXXX() method where XXX stands for the HTTP Methods like GET, POST, and so on. service() method invoked by the container will decide which of the doXXX() to be called.

提交回复
热议问题