How many instances created in the WebContainer
摘要:
When the Servlet container starts, it:readsweb.xml;finds the declared Servlets in the classpath; andloads and instantiates each Servletonly once.Roughly, like this:String urlPattern = parseWebXmlAndRetrieveServletUrlPattern();String servletClass = parseWebXmlAndRetrieveServletClass();HttpServlet ser 阅读全文