Servlet execution process

A Servlet execution process


 
 
Two Servlet life cycle
1. In the initialization phase, call the init() method.
2. In response to the client request stage, call the service() method. The service() method chooses to execute the doGet() or doPost() method according to the submission method.
3. In the termination phase, call the destroy() method.
 
Three Servlet life cycle diagram

 



 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326683972&siteId=291194637