摘要: ServletConfig 和 ServletContext的区别ServletConfig:从一个servlet被实例化后,对任何客户端在任何时候访问有效,但仅对本servlet有效,一个servlet的ServletConfig对象不能被另一个servlet访问。 1、ServletContex 阅读全文
posted @ 2018-05-23 16:44 mxgboy 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 在上一篇Servlet容器篇中提到Web容器中的Servlet容器的作用是管理Servlet的生命周期,那么肯定需要符合Servlet规范,这篇主要介绍下Servlet规范 参考:https://blog.csdn.net/wangyangzhizhou/article/details/527536 阅读全文
posted @ 2018-05-23 16:15 mxgboy 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/fredaq/article/details/9366043 一、概念 所谓Servlet容器其实说白了是符合Servlet规范的Java web容器。目前市场上面常用的开源Java Web容器有Tomcat,resin和Jetty。 注意Web容器 阅读全文
posted @ 2018-05-23 11:55 mxgboy 阅读(729) 评论(0) 推荐(0) 编辑