Servlet life cycle:

1, create an object executed once

2, init perform a method for performing initialization Servlet

3, doGet / doPost execution service performed multiple times

4, dostroy perform a method of performing the destruction of Servlet

5, Jvm recovered in the Gc Servlet Servlet object is unloaded   

Guess you like

Origin www.cnblogs.com/zxcvbnm-sj/p/11798176.html