Learning diary 2020/1/22

  1. In the method area and the JVM heap, is shared by the threads of
  2. The program counter is a relatively small memory area, the bytecode for instructing the execution of the current thread to be executed the first few lines, a thread spacer of

Here Insert Picture Description

  1. doPost / doGet is implemented in the javax.servlet.http.HttpServlet
  2. service () method is defined in the interface javax.servlet.Servlet
  3. the servlet lifecycle divided into five phases:
    1. Load: container by using the class loader loads the file corresponding servlet servlet classes
    2. Create: to create a servlet object by calling the constructor servlet
    3. Initialization: calling the init method initializes
    4. handle customer requests: whenever there is a client request, the container creates a thread to handle the request
    5, unloading: call destory way to get yourself to release servlet resources occupied by
Released two original articles · won praise 0 · Views 31

Guess you like

Origin blog.csdn.net/zhonghuaidong/article/details/104068833