Day35 Response 1.1.1 ServletContext概念 u 项目的管理者(上下文对象),服务器启动时,会为每一个项目创建一个对应的ServletContext对象. 1.1.2 ServletContext获取 u 方式1. getServletConfig().getServletContext() u 方式2: request.getServletContext() u 方式3: getServletContext() 1.1.3 ServletContext作用 整…
To globally share data among all the requests handled by the same nginx worker process, encapsulate the shared data into a Lua module, use the Lua require builtin to import the module, and then manipulate the shared data in Lua. This works because re…