- ServletConfig接口
-
- ServletConfig接口封装了Servlet配置信息,这一点从接口的名称上就能够看出来。但同时,代表当前Web应用的ServletContext对象也封装到了ServletConfig对象中,使ServletConfig对象成为了获取ServletContext对象的一座桥梁。
- ServletConfig对象的主要功能
-
①获取Servlet友好名称
②获取Servlet初始化参数
③获取ServletContext对象
- ServletContext接口
本教程由尚硅谷教育大数据研究院出品,如需转载请注明来源。