📜  servletcontext 和 servletconfig - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:03.746000             🧑  作者: Mango

代码示例1
The ServletConfig parameters are specified for a particular servlet and are unknown to other servlets. It is used for intializing purposes.

The ServletContext parameters are specified for an entire application outside of any particular servlet and are available to all the servlets within that application. It is application scoped and thus globally accessible across the pages.