摘要: 因为Http协议是无状态的(即第一次请求访问 和第二次请求访问之间的数据不能进行交互)所以产生了Cookie 和session 1.Cookie cookie值的格式是key=value;key2=value2 (tomcat8之后cookie支持存储中文数据) Cookie的默认时效为Sessio 阅读全文
posted @ 2020-05-20 15:01 gaoshengjun 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1:ServletContext对象主要的作用: (域对象,获取mime, 获取服务文件的路径) //在一个servlet中,几种获取servletContext对象的方式 request.getServletContext(); this.getServletContext(); //this这里 阅读全文
posted @ 2020-05-20 10:12 gaoshengjun 阅读(137) 评论(0) 推荐(0) 编辑