Servlet Lifecycle
Learn Servlet Lifecycle (Servlet Integration, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Servlet lifecycle is the set of stages the container drives for a servlet: load and instantiate, init() , many service() calls, then destroy() . One instance of a servlet normally serves all requests, each on a different thread, so init() and destroy() run once while service() runs per request. service() looks at the HTTP method and calls doGet , doPost and the like in HttpServlet .