Application
對應的類 ServletContext
用於保存整個WebApplication的生命週期內均可以訪問的數據
xx extends HttpServlet
ServletContext application = this.getServletContext();
//拿到全部客戶端的內存
//包括 Servlet 的整個容器
ServletContext application = this.getServletContext();
Object objValue = (Object) application.getAttribute("paramName"); application.setAttribute(" paramName ", objValue);