摘要: request对象 request对象是来获取请求消息数据 1. 获取请求行数据 GET /test/demo1?name=xiaobai HTTP/1.1 获取请求方式:String getMethod(); GET ***** 获取虚拟目录:string getContextPath(); /t 阅读全文
posted @ 2020-03-09 23:12 金鑫金 阅读(3820) 评论(0) 推荐(0) 编辑
摘要: 本次安装参考其他网络其他文章,根据自己的实际情况,进行编写记录,避免遗漏 服务器版本:CentOS 7.5 64位 安装的python版本为:python 3.7.3 1)切换工作目录至/usr/local cd /usr/local 2)下载目标python3.7.3版本压缩包 wget http 阅读全文
posted @ 2020-03-09 17:45 金鑫金 阅读(542) 评论(0) 推荐(0) 编辑
摘要: Cookie:客户端会话技术,将数据保存到客户端 1.基于响应头set-cookie和请求cookie实现 创建cookie对象new Cookie(); 发送Cookie对象response.addCookie(); 获取Cookie对象request.getCookies(); 2. 一次可不可 阅读全文
posted @ 2020-03-09 17:44 金鑫金 阅读(345) 评论(0) 推荐(0) 编辑