Because the listener is set up, first enter Com.alibaba.citrus.webx.context.WebxContextLoaderListener when the project starts, and this class inherits from Contextloaderlistener. So first run the Webxcontextloaderlistener contextinitialized method.
Createcontextloader () is a very important process and the rest of the work is completed by Contextloader.
Createcontextloader () was rewritten in WEBX to extend the ability to load components, in addition to having the original load Web application session.
After the refresh has finished running. All web App sessions and spring container initialization is complete.
The Webapplicationcontext object is placed in the properties of the ServletContext so that we can get the Webapplicationcontext object only with the servlet, and use this object to access the spring Container-managed bean.
It also complements some of the servlet-related content.
A servlet is equivalent to executing Java code on the Web side.
The servlet container dynamically loads the servlet into the server. The HTTP servlet interacts with the client using HTTP request and HTTP response headers. Configuring a servlet requires the configuration of two tags, the first <servlet> and the other is <servlet-mapping> This is similar to filter.
WEBX START Process