文章 2023-09-01 来自:开发者社区

JavaWeb 速通Servlet(ServletConfig和ServletContext)

目录一、ServletConfig        1.基本介绍 :        2.基本功能 :        3.应用实例 :        4.细节补充 : 二、ServletContext     &nb...

JavaWeb 速通Servlet(ServletConfig和ServletContext)
文章 2016-05-03 来自:开发者社区

JavaWeb学习之Servlet(四)----ServletConfig获取配置信息、ServletContext的应用

【正文】 一、ServletConfig:代表当前Servlet在web.xml中的配置信息(用的不多) String getServletName()  -- 获取当前Servlet在web.xml中配置的名字 String getInitParameter(String name) -- 获取当前Servlet指定名称的初始化参数的值 Enumeration getInitParam...

JavaWeb学习之Servlet(四)----ServletConfig获取配置信息、ServletContext的应用

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

开发与运维

集结各类场景实战经验,助你开发运维畅行无忧

+关注