Because the listener is set up, So at the start of the project first enter Com.alibaba.citrus.webx.context.WebxContextLoaderListener, this class inherits from Contextloaderlistener, so first execute Webxcontextloaderl The Contextinitialized method of Istener.
Createcontextloader () is a very important process and the rest of the work is done 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 refresh execution is complete, 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 as long as the servlet is available and use this object to access the spring Container-managed bean.
It also complements some of the servlet-related content.
Servlets are equivalent to Java code running on the web side. The servlet container dynamically loads the servlet onto the server. The HTTP servlet interacts with the client using HTTP requests and HTTP response headers. Configuring a servlet requires configuring two tags, the first <servlet>, and one is <servlet-mapping>, which is very similar to filter.