ServletConfig獲取配置信息、ServletContext的應用https://www.cnblogs.com/smyhvae/p/4140877.html

servletconfig:代表Servlet在web.xml中的配置信息 String getServletName()  -- 獲取當前Servlet在web.xml中配置的名字 String getInitParameter(String name) -- 獲取當前Servlet指定名稱的初始化參數的值 Enumeration getInitParameterNames()  -- 獲取當前
相關文章
相關標籤/搜索