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